summaryrefslogtreecommitdiff
path: root/app/Core/Security/AuthenticationManager.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2019-02-01 15:40:35 -0800
committerFrédéric Guillot <fred@kanboard.net>2019-02-01 15:40:35 -0800
commit233fd1a8a1e4da808ce34f91194a423522e5c478 (patch)
tree87f4f2be0c3bda9f958755bcfc9a71037113cb57 /app/Core/Security/AuthenticationManager.php
parentfa08493348f54fae3eed64f8de4eb5893000a918 (diff)
Authorize only API tokens when 2FA is enabled
Diffstat (limited to 'app/Core/Security/AuthenticationManager.php')
-rw-r--r--app/Core/Security/AuthenticationManager.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Core/Security/AuthenticationManager.php b/app/Core/Security/AuthenticationManager.php
index e7a3c8d4..05ad6485 100644
--- a/app/Core/Security/AuthenticationManager.php
+++ b/app/Core/Security/AuthenticationManager.php
@@ -31,6 +31,11 @@ class AuthenticationManager extends Base
*/
private $providers = array();
+ public function reset()
+ {
+ $this->providers = [];
+ }
+
/**
* Register a new authentication provider
*