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>
This commit is contained in:
Bjoern Schiessle 2021-05-11 20:38:54 +02:00 committed by backportbot[bot]
parent 3bcc23ba2c
commit a187bce7a3
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ class AddAppPassword extends Command {
$this->tokenProvider->generateToken(
$token,
$user->getUID(),
$user->getDisplayName(),
$user->getUID(),
$password,
'cli',
IToken::PERMANENT_TOKEN,