Merge pull request #33623 from NoSleep82/master

Update LostController.php
This commit is contained in:
blizzz 2022-08-22 11:24:44 +02:00 committed by GitHub
commit fd645d4802
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}