mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 12:39:25 +01:00
set the session cache for auth_alpwchange_val on setLastPwdChange
This commit is contained in:
parent
c622957b40
commit
b860d7fb50
@ -245,6 +245,7 @@ class auth_ldap implements auth_backend
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -176,14 +176,15 @@ class auth_sql implements auth_backend
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
$lastpwdchange = (is_null($lastpwdchange) || $lastpwdchange<0 ? time():$lastpwdchange);
|
||||||
$this->db->update($this->table,array(
|
$this->db->update($this->table,array(
|
||||||
'account_lastpwd_change' => (is_null($lastpwdchange) || $lastpwdchange<0 ? time():$lastpwdchange),
|
'account_lastpwd_change' => $lastpwdchange,
|
||||||
),array(
|
),array(
|
||||||
'account_id' => $account_id,
|
'account_id' => $account_id,
|
||||||
),__LINE__,__FILE__);
|
),__LINE__,__FILE__);
|
||||||
|
|
||||||
if(!$this->db->affected_rows()) return false;
|
if(!$this->db->affected_rows()) return false;
|
||||||
|
egw_cache::setSession('phpgwapi','auth_alpwchange_val',$lastpwdchange);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user