diff options
author | Joas Schilling <coding@schilljs.com> | 2018-09-19 17:55:48 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2018-09-19 17:55:48 +0200 |
commit | 5e6187926f4ba81b5fe0886a37031062295dc3c1 (patch) | |
tree | 02cda9a5cb1012070cc4bdc1b75b13944630e550 /lib/private/Authentication/Token/DefaultTokenProvider.php | |
parent | b026b5deb040631cf2c22b558cba5cbda3bfc5fb (diff) | |
download | nextcloud-server-5e6187926f4ba81b5fe0886a37031062295dc3c1.tar.gz nextcloud-server-5e6187926f4ba81b5fe0886a37031062295dc3c1.zip |
Copy the expiration from 480864b3e32d88361b17b70d238f986f64579757 to getTokenById
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Authentication/Token/DefaultTokenProvider.php')
-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); } |