From da21e86a07d66f91f07ceab99f61f57ca860066f Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 11 May 2021 20:38:54 +0200 Subject: [PATCH] use the UID as loginName and not the display name. Otherwise the app password will not work for users with a display name different to the UID. Signed-off-by: Bjoern Schiessle --- core/Command/User/AddAppPassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Command/User/AddAppPassword.php b/core/Command/User/AddAppPassword.php index d701134203..fe84800f19 100644 --- a/core/Command/User/AddAppPassword.php +++ b/core/Command/User/AddAppPassword.php @@ -122,7 +122,7 @@ class AddAppPassword extends Command { $this->tokenProvider->generateToken( $token, $user->getUID(), - $user->getDisplayName(), + $user->getUID(), $password, 'cli', IToken::PERMANENT_TOKEN,