From 86fef3f40a92cc94b6133a6cdd4de493686185c1 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 17 Mar 2021 22:30:26 -0700 Subject: [PATCH] Set SAML errors to warning instead of error Signed-off-by: snipe --- app/Http/Controllers/Auth/LoginController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index c143a27210..001c45e7a1 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -111,7 +111,7 @@ class LoginController extends Controller Auth::login($user, true); } else { $username = $saml->getUsername(); - Log::error("SAML user '$username' could not be found in database."); + \Log::warning("SAML user '$username' could not be found in database."); $request->session()->flash('error', trans('auth/message.signin.error')); $saml->clearData(); } @@ -121,7 +121,7 @@ class LoginController extends Controller $user->save(); } } catch (\Exception $e) { - Log::error("There was an error authenticating the SAML user: " . $e->getMessage()); + \Log::warning("There was an error authenticating the SAML user: " . $e->getMessage()); throw new \Exception($e->getMessage()); } }