Do not saml login automatically after normal logout
This commit is contained in:
parent
c8d5445178
commit
92fe1287ea
1 changed files with 9 additions and 7 deletions
|
@ -68,15 +68,17 @@ class LoginController extends Controller
|
||||||
return redirect()->intended('/');
|
return redirect()->intended('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the environment is set to ALWAYS require SAML, go straight to the SAML route.
|
if (!$request->session()->has('loggedout')) {
|
||||||
// We don't need to check other settings, as this should override those.
|
// If the environment is set to ALWAYS require SAML, go straight to the SAML route.
|
||||||
if (config('app.require_saml')) {
|
// We don't need to check other settings, as this should override those.
|
||||||
return redirect()->route('saml.login');
|
if (config('app.require_saml')) {
|
||||||
}
|
return redirect()->route('saml.login');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($this->saml->isEnabled() && Setting::getSettings()->saml_forcelogin == '1' && ! ($request->has('nosaml') || $request->session()->has('error'))) {
|
if ($this->saml->isEnabled() && Setting::getSettings()->saml_forcelogin == '1' && ! ($request->has('nosaml') || $request->session()->has('error'))) {
|
||||||
return redirect()->route('saml.login');
|
return redirect()->route('saml.login');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Setting::getSettings()->login_common_disabled == '1') {
|
if (Setting::getSettings()->login_common_disabled == '1') {
|
||||||
|
|
Loading…
Add table
Reference in a new issue