diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-06 15:09:42 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-07 09:09:51 +0200 |
commit | 8f7a4aaa4d839600ffc4b15b8e67c07101f5e9c9 (patch) | |
tree | 6c4926ed6c350967dcedeb43c589791beb89261f /core/Application.php | |
parent | f28f6ad2df59b8faa9589bffbc9d2c53b03a2840 (diff) | |
download | nextcloud-server-8f7a4aaa4d839600ffc4b15b8e67c07101f5e9c9.tar.gz nextcloud-server-8f7a4aaa4d839600ffc4b15b8e67c07101f5e9c9.zip |
do not generate device token if 2FA is enable for user
Diffstat (limited to 'core/Application.php')
-rw-r--r-- | core/Application.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Application.php b/core/Application.php index 25e2fa76273..a87917b626a 100644 --- a/core/Application.php +++ b/core/Application.php @@ -120,7 +120,8 @@ class Application extends App { $c->query('AppName'), $c->query('Request'), $c->query('UserManager'), - $c->query('OC\Authentication\Token\DefaultTokenProvider'), + $c->query('ServerContainer')->query('OC\Authentication\Token\IProvider'), + $c->query('TwoFactorAuthManager'), $c->query('SecureRandom') ); }); |