FIX PasswordValidator->characterStrength() Documentation

This commit is contained in:
Devlin 2013-10-15 12:44:50 +02:00
parent 14e5c80dad
commit 5ea314d012
2 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ a [api:PasswordValidator]:
$validator = new PasswordValidator();
$validator->minLength(7);
$validator->checkHistoricalPasswords(6);
$validator->characterStrength('lowercase','uppercase','digits','punctuation');
$validator->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));
Member::set_password_validator($validator);
In addition, you can tighten password security with the following configuration settings:

View File

@ -7,7 +7,7 @@
* $pwdVal = new PasswordValidator();
* $pwdValidator->minLength(7);
* $pwdValidator->checkHistoricalPasswords(6);
* $pwdValidator->characterStrength('lowercase','uppercase','digits','punctuation');
* $pwdValidator->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));
*
* Member::set_password_validator($pwdValidator);
* </code>