summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-08 10:13:04 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-08 10:13:04 +0200
commit12683b786dd4408a3b15c40b358bd10816066399 (patch)
treee1b446d702335fb31cb8fdaf6b974e3464caf1d9 /lib
parent9b6125e49bc60c410c86aa3f08ce12b8cf887d2c (diff)
parent8f7a4aaa4d839600ffc4b15b8e67c07101f5e9c9 (diff)
downloadnextcloud-server-12683b786dd4408a3b15c40b358bd10816066399.tar.gz
nextcloud-server-12683b786dd4408a3b15c40b358bd10816066399.zip
Merge pull request #24991 from owncloud/2fa-do-not-generate-token
do not generate device token if 2FA is enable for user
Diffstat (limited to 'lib')
-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();
}