Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Expire tokens hardening
Just to be sure that the field is also not 0

Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Sep 7, 2018
commit c83ac2472da15d85ad32c8ca72cb3e65b86a4bdb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function getToken(string $tokenId): IToken {
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);
}

Expand Down