mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix(auth): resolve undefined request variable in forced oauth login
This commit is contained in:
parent
d67eb7fd42
commit
d6c30570ab
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class FortifyServiceProvider extends ServiceProvider
|
|||
$enabled_oauth_providers = OauthSetting::where('enabled', true)->get();
|
||||
$users = User::count();
|
||||
|
||||
if (!$request->has('skip_oauth') && $settings->oauth_auto_redirect && $enabled_oauth_providers->where('provider', $settings->oauth_auto_redirect)->isNotEmpty()) {
|
||||
if (!request()->has('skip_oauth') && $settings->oauth_auto_redirect && $enabled_oauth_providers->where('provider', $settings->oauth_auto_redirect)->isNotEmpty()) {
|
||||
return redirect()->route('auth.redirect', ['provider' => $settings->oauth_auto_redirect]);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue