set the session cache only when not in admin mode

This commit is contained in:
Klaus Leithoff 2011-09-23 09:41:03 +00:00
parent b860d7fb50
commit 6bff18eadd
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ class auth_ldap implements auth_backend
{
return false;
}
egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']);
if (!$admin) egw_cache::setSession('phpgwapi','auth_alpwchange_val',$entry['shadowlastchange']);
return true;
}

View File

@ -184,7 +184,7 @@ class auth_sql implements auth_backend
),__LINE__,__FILE__);
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;
}