summaryrefslogtreecommitdiffstats
path: root/lib/private/Authentication/Token/DefaultToken.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-26 11:32:35 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-11 13:36:46 +0200
commit3ab922601a2e6b9b170007461b9e0718c70bddcd (patch)
tree77f04125c2d7c422f74f4583cf116da7a9ff56c9 /lib/private/Authentication/Token/DefaultToken.php
parent2fa5e0a24e34b109fcd4adb98932e9537884bc9a (diff)
downloadnextcloud-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.php7
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;
}
}