mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Tokens without password should not trigger changed password invalidation
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
6e7ec1dd7a
commit
b2566e3dda
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