mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-17 10:51:38 +01:00
check if method exists for the fallback_auth, before calling get/setLastPwdChange
This commit is contained in:
parent
21f4b6e887
commit
4b3bcf0fb8
@ -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