diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-25 16:40:41 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-11 13:36:46 +0200 |
commit | 2fa5e0a24e34b109fcd4adb98932e9537884bc9a (patch) | |
tree | ac0822860e46ffeb0fee03c5f593dfd49bbc62c5 /lib/private/Setup.php | |
parent | d8cde414bd13c327ec2edaf1ae38380073c93e3e (diff) | |
download | nextcloud-server-2fa5e0a24e34b109fcd4adb98932e9537884bc9a.tar.gz nextcloud-server-2fa5e0a24e34b109fcd4adb98932e9537884bc9a.zip |
invalidate (delete) session token on logout
add 'last_activity' column to session tokens and delete old ones via a background job
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r-- | lib/private/Setup.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php index 23c66f98b7c..94197f7f27f 100644 --- a/lib/private/Setup.php +++ b/lib/private/Setup.php @@ -382,6 +382,8 @@ class Setup { $config->setSystemValue('logtimezone', date_default_timezone_get()); } + self::installBackgroundJobs(); + //and we are done $config->setSystemValue('installed', true); } @@ -389,6 +391,10 @@ class Setup { return $error; } + public static function installBackgroundJobs() { + \OC::$server->getJobList()->add('\OC\Authentication\Token\DefaultTokenCleanupJob'); + } + /** * @return string Absolute path to htaccess */ |