Skip to content
Snippets Groups Projects
Commit 86fef3f4 authored by snipe's avatar snipe
Browse files

Set SAML errors to warning instead of error


Signed-off-by: default avatarsnipe <snipe@snipe.net>
parent 069e9e52
No related branches found
No related tags found
No related merge requests found
......@@ -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());
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment