mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Expire tokens hardening
Just to be sure that the field is also not 0 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
1b35dc1cba
commit
c83ac2472d
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class PublicKeyTokenProvider implements IProvider {
|
|||
throw new InvalidTokenException();
|
||||
}
|
||||
|
||||
if ($token->getExpires() !== null && $token->getExpires() < $this->time->getTime()) {
|
||||
if ($token->getExpires() !== null && $token->getExpires() !== 0 && $token->getExpires() < $this->time->getTime()) {
|
||||
throw new ExpiredTokenException($token);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue