Update LoginController.php
Updated if statements to match convention exactly.
This commit is contained in:
parent
74de91c31a
commit
a68ec8bb57
1 changed files with 2 additions and 4 deletions
|
@ -76,8 +76,7 @@ class LoginController extends Controller
|
||||||
|
|
||||||
//If the environment is set to ALWAYS require SAML, go straight to the SAML route.
|
//If the environment is set to ALWAYS require SAML, go straight to the SAML route.
|
||||||
//We don't need to check other settings, as this should override those.
|
//We don't need to check other settings, as this should override those.
|
||||||
if(config('app.require_saml'))
|
if(config('app.require_saml')) {
|
||||||
{
|
|
||||||
return redirect()->route('saml.login');
|
return redirect()->route('saml.login');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,8 +208,7 @@ class LoginController extends Controller
|
||||||
public function login(Request $request)
|
public function login(Request $request)
|
||||||
{
|
{
|
||||||
//If the environment is set to ALWAYS require SAML, return access denied
|
//If the environment is set to ALWAYS require SAML, return access denied
|
||||||
if(config('app.require_saml'))
|
if(config('app.require_saml')) {
|
||||||
{
|
|
||||||
return view('errors.403');
|
return view('errors.403');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue