Skip to content

Commit da5063b

Browse files
authored
Merge pull request #29161 from nextcloud/backport/29122/stable21
[stable21] Tokens without password should not trigger changed password invalidation
2 parents 6e7ec1d + b2566e3 commit da5063b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/Authentication/Token/DefaultTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function renewSessionToken(string $oldSessionId, string $sessionId): ITok
225225
*/
226226
public function getPassword(IToken $savedToken, string $tokenId): string {
227227
$password = $savedToken->getPassword();
228-
if (is_null($password)) {
228+
if ($password === null || $password === '') {
229229
throw new PasswordlessTokenException();
230230
}
231231
return $this->decryptPassword($password, $tokenId);

0 commit comments

Comments
 (0)