This commit is contained in:
James Cole 2020-08-23 18:48:24 +02:00
parent 28698cc769
commit bee54146bf
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -69,8 +69,8 @@ class LoginController extends Controller
$loginProvider = config('firefly.login_provider');
$authGuard = config('firefly.authentication_guard');
if ('eloquent' !== $loginProvider || 'web' !== $authGuard) {
$route = request()->route()->getName();
if (('eloquent' !== $loginProvider || 'web' !== $authGuard) && 'logout' !== $route) {
throw new FireflyException('Using external identity provider. Cannot continue.');
}
}