]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update core/Controller/LostController.php 33623/head
authorNoSleep82 <52562874+NoSleep82@users.noreply.github.com>
Sun, 21 Aug 2022 11:16:23 +0000 (13:16 +0200)
committerGitHub <noreply@github.com>
Sun, 21 Aug 2022 11:16:23 +0000 (13:16 +0200)
Co-authored-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
Signed-off-by: NoSleep82 <52562874+NoSleep82@users.noreply.github.com>
core/Controller/LostController.php

index f930725e6435f09c21ea040a5eebef298cf5e736..e5dc5218cb155e0157d8bd7aec0d59e35abc0b90 100644 (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;