From 3e57666093f9a45ee2c13e045f39cc30ae01166d Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 23 May 2018 17:01:54 +0200 Subject: [PATCH] Properly set expires to NULL when creating a token Signed-off-by: Roeland Jago Douma --- lib/private/Authentication/Token/DefaultToken.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index 583423166dd..4869661a8f9 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -99,6 +99,9 @@ class DefaultToken extends Entity implements IToken { $this->addType('lastCheck', 'int'); $this->addType('scope', 'string'); $this->addType('expires', 'int'); + + $this->setExpires(null); + $this->markFieldUpdated('expires'); } public function getId() {