mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 08:09:02 +01:00
if ldap with fallback sql, we may be able to fetch and set the password last change date, if we are on primary, so check if the method exists instead of returning false.
This commit is contained in:
parent
2d7a2664dd
commit
e48ece66ae
@ -103,7 +103,7 @@ class auth_fallback implements auth_backend
|
|||||||
{
|
{
|
||||||
if (egw_cache::getInstance(__CLASS__,'backend_used-'.$username) == 'primary')
|
if (egw_cache::getInstance(__CLASS__,'backend_used-'.$username) == 'primary')
|
||||||
{
|
{
|
||||||
return false;
|
if (method_exists($this->primary_backend,'getLastPwdChange')) return $this->primary_backend->getLastPwdChange($username);
|
||||||
}
|
}
|
||||||
if (method_exists($this->fallback_backend,'getLastPwdChange')) return $this->fallback_backend->getLastPwdChange($username);
|
if (method_exists($this->fallback_backend,'getLastPwdChange')) return $this->fallback_backend->getLastPwdChange($username);
|
||||||
return false;
|
return false;
|
||||||
@ -131,7 +131,7 @@ class auth_fallback implements auth_backend
|
|||||||
}
|
}
|
||||||
if (egw_cache::getInstance(__CLASS__,'backend_used-'.$username) == 'primary')
|
if (egw_cache::getInstance(__CLASS__,'backend_used-'.$username) == 'primary')
|
||||||
{
|
{
|
||||||
return false;
|
if (method_exists($this->primary_backend,'setLastPwdChange')) return $this->primary_backend->setLastPwdChange($username);
|
||||||
}
|
}
|
||||||
if (method_exists($this->fallback_backend,'setLastPwdChange')) return $this->fallback_backend->setLastPwdChange($account_id, $passwd, $lastpwdchange);
|
if (method_exists($this->fallback_backend,'setLastPwdChange')) return $this->fallback_backend->setLastPwdChange($account_id, $passwd, $lastpwdchange);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user