Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-05-23 18:01:54 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2018-05-23 18:02:15 +0300
commit3e57666093f9a45ee2c13e045f39cc30ae01166d (patch)
treeea44f053cc4eb0c15822fa9b79679518b4095a78 /lib
parentc2f09e43959f31b3c9548c0bac5dcf68652b83b6 (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.php3
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() {