mirror of
https://github.com/nextcloud/server.git
synced 2026-06-15 11:41:20 -04:00
Merge pull request #11103 from nextcloud/backport/token_expire_hardening
[stable14] Expire tokens hardening
This commit is contained in:
commit
5b89eff367
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class PublicKeyTokenProvider implements IProvider {
|
|||
throw new InvalidTokenException();
|
||||
}
|
||||
|
||||
if ($token->getExpires() !== null && $token->getExpires() < $this->time->getTime()) {
|
||||
if ($token->getExpires() !== null && $token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
|
||||
throw new ExpiredTokenException($token);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue