mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
check if method exists for the fallback_auth, before calling get/setLastPwdChange
This commit is contained in:
parent
7443fdc639
commit
740758d026
@ -105,7 +105,8 @@ class auth_fallback implements auth_backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return $this->fallback_backend->getLastPwdChange($username);
|
||||
if (method_exists($this->fallback_backend,'getLastPwdChange')) return $this->fallback_backend->getLastPwdChange($username);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -132,6 +133,7 @@ class auth_fallback implements auth_backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,8 @@ class auth_fallbackmail2sql implements auth_backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
return $this->fallback_backend->getLastPwdChange($username);
|
||||
if (method_exists($this->fallback_backend,'getLastPwdChange')) return $this->fallback_backend->getLastPwdChange($username);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -132,6 +133,7 @@ class auth_fallbackmail2sql implements auth_backend
|
||||
{
|
||||
return false;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user