diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-06-09 11:25:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-09 11:25:58 +0200 |
commit | 0c2f016b672917c27eadf694be32eccf118dd064 (patch) | |
tree | 94550a35b93de49fa6a5413ca89dc2a679d59cd4 /lib | |
parent | ae3bdb4fb9489b643b65b5d5678d0b1cf3cc953b (diff) | |
parent | 480864b3e32d88361b17b70d238f986f64579757 (diff) | |
download | nextcloud-server-0c2f016b672917c27eadf694be32eccf118dd064.tar.gz nextcloud-server-0c2f016b672917c27eadf694be32eccf118dd064.zip |
Merge pull request #9802 from nextcloud/bugfix/noid/token_check_expire_better
Make the token expiration also work for autocasting 0
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/DefaultTokenProvider.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenProvider.php b/lib/private/Authentication/Token/DefaultTokenProvider.php index 5df74cadac4..7a43dbb23e1 100644 --- a/lib/private/Authentication/Token/DefaultTokenProvider.php +++ b/lib/private/Authentication/Token/DefaultTokenProvider.php @@ -171,7 +171,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); } |