Browse Source

Update core/Controller/LostController.php

Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: NoSleep82 <52562874+NoSleep82@users.noreply.github.com>
pull/33623/head
NoSleep82 3 years ago
committed by GitHub
parent
commit
b03aedf128
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/Controller/LostController.php

2
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 ' . $user . ' is disabled');
throw new ResetPasswordException('User ' . $user->getUID() . ' is disabled');
}
return $user;

Loading…
Cancel
Save