mirror of
https://github.com/nextcloud/server.git
synced 2026-02-27 18:37:17 +01:00
Update LostController.php
i would be useful to know who is trying to reset the password (misspelled username or email, ex user or some sort of attack) Signed-off-by: NoSleep82 <52562874+NoSleep82@users.noreply.github.com>
This commit is contained in:
@@ -314,7 +314,7 @@ class LostController extends Controller {
|
||||
$user = $this->userManager->get($input);
|
||||
if ($user instanceof IUser) {
|
||||
if (!$user->isEnabled()) {
|
||||
throw new ResetPasswordException('User is disabled');
|
||||
throw new ResetPasswordException('User ' . $user . ' is disabled');
|
||||
}
|
||||
|
||||
return $user;
|
||||
@@ -328,6 +328,6 @@ class LostController extends Controller {
|
||||
return reset($users);
|
||||
}
|
||||
|
||||
throw new ResetPasswordException('Could not find user');
|
||||
throw new ResetPasswordException('Could not find user ' . $input);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user