From 2b16d73e65ad3d0b14bb9d979b9bd05666f7c965 Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 21 Sep 2020 20:40:47 +0200 Subject: [PATCH] Remove LDAP limit from 2FA --- app/Http/Controllers/Auth/TwoFactorController.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/app/Http/Controllers/Auth/TwoFactorController.php b/app/Http/Controllers/Auth/TwoFactorController.php index c92049e828..9171feff5f 100644 --- a/app/Http/Controllers/Auth/TwoFactorController.php +++ b/app/Http/Controllers/Auth/TwoFactorController.php @@ -36,21 +36,6 @@ use Preferences; */ class TwoFactorController extends Controller { - /** - * Create a new controller instance. - */ - public function __construct() - { - parent::__construct(); - - $loginProvider = config('firefly.login_provider'); - $authGuard = config('firefly.authentication_guard'); - - if ('eloquent' !== $loginProvider || 'web' !== $authGuard) { - throw new FireflyException('Using external identity provider. Cannot continue.'); - } - } - /** * What to do if 2FA lost? *