mirror of
https://github.com/nextcloud/server.git
synced 2026-06-04 06:13:34 -04:00
Merge pull request #33623 from NoSleep82/master
Update LostController.php
This commit is contained in:
commit
fd645d4802
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->getUID() . ' 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