mirror of
https://github.com/nextcloud/server.git
synced 2026-03-26 20:33:55 -04: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:
parent
4a77a68734
commit
61548c520b
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue