From a68ec8bb571c6e041498d70cd212316df0d0814c Mon Sep 17 00:00:00 2001 From: Alex Janes <38761237+adagioajanes@users.noreply.github.com> Date: Fri, 17 Dec 2021 18:52:42 -0500 Subject: [PATCH] Update LoginController.php Updated if statements to match convention exactly. --- app/Http/Controllers/Auth/LoginController.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 00bd470cd2..996747c65c 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -76,8 +76,7 @@ class LoginController extends Controller //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('app.require_saml')) - { + if(config('app.require_saml')) { return redirect()->route('saml.login'); } @@ -209,8 +208,7 @@ class LoginController extends Controller public function login(Request $request) { //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'); }