Skip to content

Commit

Permalink
bug fix and formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
adagioajanes committed Dec 17, 2021
1 parent 6898119 commit d99db5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Auth/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function showLoginForm(Request $request)

//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.
if(config('REQUIRE_SAML'))
if(config('app.require_saml'))
{
return redirect()->route('saml.login');
}
Expand Down Expand Up @@ -209,7 +209,7 @@ private function loginViaRemoteUser(Request $request)
public function login(Request $request)
{
//If the environment is set to ALWAYS require SAML, return access denied
if(config('REQUIRE_SAML'))
if(config('app.require_saml'))
{
return view('errors.403');
}
Expand Down

0 comments on commit d99db5c

Please sign in to comment.