From 233fd1a8a1e4da808ce34f91194a423522e5c478 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 1 Feb 2019 15:40:35 -0800 Subject: Authorize only API tokens when 2FA is enabled --- app/Core/Security/AuthenticationManager.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/Core/Security') 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 * -- cgit v1.2.3