diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-26 11:32:35 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-11 13:36:46 +0200 |
commit | 3ab922601a2e6b9b170007461b9e0718c70bddcd (patch) | |
tree | 77f04125c2d7c422f74f4583cf116da7a9ff56c9 /lib/private/Authentication/Token/DefaultToken.php | |
parent | 2fa5e0a24e34b109fcd4adb98932e9537884bc9a (diff) | |
download | nextcloud-server-3ab922601a2e6b9b170007461b9e0718c70bddcd.tar.gz nextcloud-server-3ab922601a2e6b9b170007461b9e0718c70bddcd.zip |
Check if session token is valid and log user out if the check fails
* Update last_activity timestamp of the session token
* Check user backend credentials once in 5 minutes
Diffstat (limited to 'lib/private/Authentication/Token/DefaultToken.php')
-rw-r--r-- | lib/private/Authentication/Token/DefaultToken.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php index 9bdae789afd..6b859d7d063 100644 --- a/lib/private/Authentication/Token/DefaultToken.php +++ b/lib/private/Authentication/Token/DefaultToken.php @@ -51,13 +51,8 @@ class DefaultToken extends Entity implements IToken { */ protected $lastActivity; - /** - * Get the token ID - * - * @return string - */ public function getId() { - return $this->token; + return $this->id; } } |