From 14e95c47e164bfbe36dadfcc8bfc6fb4c7f63db8 Mon Sep 17 00:00:00 2001 From: snipe Date: Mon, 6 Feb 2023 12:40:32 -0800 Subject: [PATCH] Made constant DATA_SESSION_KEY public Signed-off-by: snipe --- app/Services/Saml.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Services/Saml.php b/app/Services/Saml.php index c8fed32bb1..3f39be29ff 100644 --- a/app/Services/Saml.php +++ b/app/Services/Saml.php @@ -22,7 +22,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException; */ class Saml { - const DATA_SESSION_KEY = '_samlData'; + public const DATA_SESSION_KEY = '_samlData'; /** * OneLogin_Saml2_Auth instance. @@ -308,12 +308,9 @@ class Saml */ public function samlLogin($data) { - $setting = Setting::getSettings(); $this->saveDataToSession($data); $this->loadDataFromSession(); - $username = $this->getUsername(); - return User::where('username', '=', $username)->whereNull('deleted_at')->where('activated', '=', '1')->first(); }