Merge pull request #9804 from nextcloud/backport/9802/stable12
[stable12] Make the token expiration also work for autocasting 0
This commit is contained in:
commit
07f5a2d448
|
@ -159,7 +159,7 @@ class DefaultTokenProvider implements IProvider {
|
|||
throw new InvalidTokenException();
|
||||
}
|
||||
|
||||
if ($token->getExpires() !== null && $token->getExpires() < $this->time->getTime()) {
|
||||
if ((int)$token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
|
||||
throw new ExpiredTokenException($token);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue