summaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LostController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Controller/LostController.php b/core/Controller/LostController.php
index f930725e643..e5dc5218cb1 100644
--- a/core/Controller/LostController.php
+++ b/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;