Merge pull request #9803 from nextcloud/backport/9802/stable13

[stable13] Make the token expiration also work for autocasting 0
This commit is contained in:
John Molakvoæ 2018-06-11 09:16:57 +02:00 committed by GitHub
commit bf7620d868
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,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);
}