mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-13 15:48:17 +01:00
fix not working stored password for SSO
This commit is contained in:
parent
a2af96266b
commit
bc0736a9a5
@ -328,9 +328,11 @@ class Session
|
|||||||
*/
|
*/
|
||||||
public function __set($name, $value)
|
public function __set($name, $value)
|
||||||
{
|
{
|
||||||
if ($name === 'passwd')
|
if ($name === 'passwd' && !empty($value))
|
||||||
{
|
{
|
||||||
$this->password_encrypted = Mail\Credentials::encrypt($value, $this->account_id, $pw_enc, true);
|
// we also need to update it in session, as extra SSO password uses the hook "session_created" running after call to register_session!
|
||||||
|
$_SESSION[self::EGW_SESSION_VAR]['session_password'] = $this->password_encrypted =
|
||||||
|
Mail\Credentials::encrypt($value, $this->account_id, $pw_enc, true);
|
||||||
$this->_password = $value;
|
$this->_password = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2057,7 +2059,6 @@ class Session
|
|||||||
$user['account_id'] = $this->account_id;
|
$user['account_id'] = $this->account_id;
|
||||||
$user['account_lid'] = $this->account_lid;
|
$user['account_lid'] = $this->account_lid;
|
||||||
$user['userid'] = $this->account_lid;
|
$user['userid'] = $this->account_lid;
|
||||||
$user['passwd'] = $this->passwd;
|
|
||||||
|
|
||||||
return $user;
|
return $user;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user