mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 08:12:26 +02:00
524 - password policy
"change pwd" page: add feedback during the password typing
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user