mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
Merge pull request #29166 from nextcloud/backport/29122/stable20
[stable20] Tokens without password should not trigger changed password invalidation
This commit is contained in:
commit
b91dc51f6c
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ class DefaultTokenProvider implements IProvider {
|
|||
*/
|
||||
public function getPassword(IToken $savedToken, string $tokenId): string {
|
||||
$password = $savedToken->getPassword();
|
||||
if (is_null($password)) {
|
||||
if ($password === null || $password === '') {
|
||||
throw new PasswordlessTokenException();
|
||||
}
|
||||
return $this->decryptPassword($password, $tokenId);
|
||||
|
|
|
|||
Loading…
Reference in a new issue