forked from extern/egroupware
set the session cache only when not in admin mode
This commit is contained in:
parent
b860d7fb50
commit
6bff18eadd
@ -245,7 +245,7 @@ class auth_ldap implements auth_backend
|
|||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']);
|
if (!$admin) egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ class auth_sql implements auth_backend
|
|||||||
),__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);
|
if (!$admin) egw_cache::setSession('phpgwapi','auth_alpwchange_val',$lastpwdchange);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user