Properly set expires to NULL when creating a token

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2018-05-23 17:01:54 +02:00
parent c2f09e4395
commit 3e57666093
No known key found for this signature in database
GPG Key ID: F941078878347C0C
1 changed files with 3 additions and 0 deletions

View File

@ -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() {