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>
This commit is contained in:
NoSleep82 2022-08-21 13:16:23 +02:00 committed by GitHub
parent 61548c520b
commit b03aedf128
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 ' . $user . ' is disabled');
throw new ResetPasswordException('User ' . $user->getUID() . ' is disabled');
}
return $user;