mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-22 09:59:06 +01:00
Revert zxcvbn usage in LSexample to keep PHP5 support
Also add note about LSformRule_zxcvbn requirement of PHP >= 7.
This commit is contained in:
parent
db287937b7
commit
5d51114b8d
2 changed files with 14 additions and 3 deletions
|
@ -8,6 +8,9 @@
|
|||
la base de l'analyse du mot de passe saisi, des conseils seront donnés à
|
||||
l'utilisateur pour le guider dans le choix d'un mot de passe sûre.</para>
|
||||
|
||||
<warning><simpara>La librairie <literal>ZxcvbnPhp</literal> n'est compatible qu'avec
|
||||
PHP 7 et supérieur.</simpara></warning>
|
||||
|
||||
<variablelist>
|
||||
<title>Paramètres de configuration</title>
|
||||
|
||||
|
|
|
@ -553,10 +553,18 @@ $GLOBALS['LSobjects']['LSpeople'] = array (
|
|||
'confirmChangeQuestion' => "Do you confirm change of this user's password?",
|
||||
),
|
||||
'check_data' => array(
|
||||
'zxcvbn' => array(
|
||||
'password' => array(
|
||||
'msg' => 'Your password must contain from 8 to 10 characters and contains at least one caracter that match with 3 of this types :<ul><li>Uppercase unaccent character</li><li>Lowercase unaccent character</li><li>Digit</li><li>Anything that is not a letter or a digit</li></ul>',
|
||||
'params' => array(
|
||||
'minScore' => 4,
|
||||
'userDataAttrs' => array('sn', 'givenName', 'mail'),
|
||||
'minLength' => 8,
|
||||
'maxLength' => 10,
|
||||
'regex' => array (
|
||||
'/[A-Z]/',
|
||||
'/[a-z]/',
|
||||
'/[0-9]/',
|
||||
'/[^A-Za-z0-9]/',
|
||||
),
|
||||
'minValidRegex' => 3,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue