mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 23:54:12 -08:00
Made constant DATA_SESSION_KEY public
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
dc43c4f68a
commit
14e95c47e1
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue