diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-23 18:01:54 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-05-23 18:02:15 +0300 |
commit | 3e57666093f9a45ee2c13e045f39cc30ae01166d (patch) | |
tree | ea44f053cc4eb0c15822fa9b79679518b4095a78 /lib | |
parent | c2f09e43959f31b3c9548c0bac5dcf68652b83b6 (diff) |
Properly set expires to NULL when creating a token
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Authentication/Token/DefaultToken.php | 3 |
1 files changed, 3 insertions, 0 deletions
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() { |