Made constant DATA_SESSION_KEY public

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-02-06 12:40:32 -08:00
parent 590cb6a15b
commit 8a8575bf2d

View file

@ -22,7 +22,7 @@ use Symfony\Component\HttpKernel\Exception\HttpException;
*/ */
class Saml class Saml
{ {
const DATA_SESSION_KEY = '_samlData'; public const DATA_SESSION_KEY = '_samlData';
/** /**
* OneLogin_Saml2_Auth instance. * OneLogin_Saml2_Auth instance.
@ -308,12 +308,9 @@ class Saml
*/ */
public function samlLogin($data) public function samlLogin($data)
{ {
$setting = Setting::getSettings();
$this->saveDataToSession($data); $this->saveDataToSession($data);
$this->loadDataFromSession(); $this->loadDataFromSession();
$username = $this->getUsername(); $username = $this->getUsername();
return User::where('username', '=', $username)->whereNull('deleted_at')->where('activated', '=', '1')->first(); return User::where('username', '=', $username)->whereNull('deleted_at')->where('activated', '=', '1')->first();
} }