summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-06-06 15:09:42 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-06-09 14:00:00 +0200
commit60e15e934c6556d34d27ff214f6a148247605bc2 (patch)
tree7d54becdb99c6b4a0495bbf3168710c91c993826 /lib/private
parentd72d8c1fcb54aa59ab1f62a11ef139abea33f97b (diff)
downloadnextcloud-server-60e15e934c6556d34d27ff214f6a148247605bc2.tar.gz
nextcloud-server-60e15e934c6556d34d27ff214f6a148247605bc2.zip
do not generate device token if 2FA is enable for user
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Authentication/Token/DefaultTokenCleanupJob.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Authentication/Token/DefaultTokenCleanupJob.php b/lib/private/Authentication/Token/DefaultTokenCleanupJob.php
index 04b98c6c5a0..7746d6be915 100644
--- a/lib/private/Authentication/Token/DefaultTokenCleanupJob.php
+++ b/lib/private/Authentication/Token/DefaultTokenCleanupJob.php
@@ -28,6 +28,7 @@ class DefaultTokenCleanupJob extends Job {
protected function run($argument) {
/* @var $provider DefaultTokenProvider */
+ // TODO: add OC\Authentication\Token\IProvider::invalidateOldTokens and query interface
$provider = OC::$server->query('OC\Authentication\Token\DefaultTokenProvider');
$provider->invalidateOldTokens();
}