mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 10:53:37 +00:00
Fix #3721
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user