524 - password policy

"change pwd" page: add feedback during the password typing
This commit is contained in:
bruno DA SILVA
2020-01-06 09:31:28 +01:00
parent 97ebffd5fb
commit 7a85201a07
4 changed files with 151 additions and 1 deletions

View File

@@ -176,6 +176,21 @@ class UserLocal extends UserInternal
return (empty($this->m_oPasswordValidity)) || ($this->m_oPasswordValidity->isPasswordValid());
}
public function getPasswordValidityMessage()
{
if (ContextTag::Check('Setup'))
{
// during the setup, the admin account can have whatever password you want ...
return null;
}
if (empty($this->m_oPasswordValidity))
{
return null;
}
return $this->m_oPasswordValidity->getPasswordValidityMessage();
}
/**