summaryrefslogtreecommitdiffstats
path: root/core/Controller/LostController.php
diff options
context:
space:
mode:
authorNoSleep82 <52562874+NoSleep82@users.noreply.github.com>2022-08-19 18:30:32 +0200
committerGitHub <noreply@github.com>2022-08-19 18:30:32 +0200
commit61548c520be2bfdd127f2fd20a02dfdc5845dcf7 (patch)
tree90f38bc69ae8495b467c195a2beae40fe4ca6708 /core/Controller/LostController.php
parent4a77a687343c3c858051cefeab3ac800504baafe (diff)
downloadnextcloud-server-61548c520be2bfdd127f2fd20a02dfdc5845dcf7.tar.gz
nextcloud-server-61548c520be2bfdd127f2fd20a02dfdc5845dcf7.zip
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>
Diffstat (limited to 'core/Controller/LostController.php')
-rw-r--r--core/Controller/LostController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index 0172d94ac95..f930725e643 100644
--- a/core/Controller/LostController.php
+++ b/core/Controller/LostController.php
@@ -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);
}
}