Skip to content

Commit c5fcea3

Browse files
author
Julien Veyssier
committed
make sure generated app tokens have no password when it's an empty string
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
1 parent da1b97d commit c5fcea3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

core/Controller/AppPasswordController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ public function getAppPassword(): DataResponse {
9494

9595
try {
9696
$password = $credentials->getPassword();
97+
if ($password === '') {
98+
$password = null;
99+
}
97100
} catch (PasswordUnavailableException $e) {
98101
$password = null;
99102
}

0 commit comments

Comments
 (0)