Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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 <[email protected]>
  • Loading branch information
NoSleep82 authored Aug 19, 2022
commit 61548c520be2bfdd127f2fd20a02dfdc5845dcf7
4 changes: 2 additions & 2 deletions core/Controller/LostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ protected function findUserByIdOrMail(string $input): IUser {
$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;
Expand All @@ -328,6 +328,6 @@ protected function findUserByIdOrMail(string $input): IUser {
return reset($users);
}

throw new ResetPasswordException('Could not find user');
throw new ResetPasswordException('Could not find user ' . $input);
}
}