aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2021-05-11 20:38:54 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2021-05-11 20:38:54 +0200
commitda21e86a07d66f91f07ceab99f61f57ca860066f (patch)
tree885dd5f9c647473099b37c5e7614d13596bcb8cd
parentbf86050c77c9a77ab9471750281002e7cade2379 (diff)
downloadnextcloud-server-da21e86a07d66f91f07ceab99f61f57ca860066f.tar.gz
nextcloud-server-da21e86a07d66f91f07ceab99f61f57ca860066f.zip
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 <bjoern@schiessle.org>
-rw-r--r--core/Command/User/AddAppPassword.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/Command/User/AddAppPassword.php b/core/Command/User/AddAppPassword.php
index d7011342030..fe84800f19a 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,