diff options
author | Joas Schilling <coding@schilljs.com> | 2018-09-19 17:55:48 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-09-20 09:59:53 +0200 |
commit | 3a179b2519113ea1712fd5d67ed0a5d942497214 (patch) | |
tree | f7dc3a86a10b8cbf59cbbdc8ffd10c3641024894 /lib | |
parent | 8dff9460b8663e9c46b23dcb9ddd030b5f058bba (diff) | |
download | nextcloud-server-3a179b2519113ea1712fd5d67ed0a5d942497214.tar.gz nextcloud-server-3a179b2519113ea1712fd5d67ed0a5d942497214.zip |
Copy the expiration from 480864b3e32d88361b17b70d238f986f64579757 to getTokenById
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 8c2d8c33a97..ad45303fa7c 100644 --- a/lib/private/Authentication/Token/DefaultTokenProvider.php +++ b/lib/private/Authentication/Token/DefaultTokenProvider.php @@ -184,7 +184,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); } |