mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX PasswordValidator->characterStrength() Documentation
This commit is contained in:
parent
14e5c80dad
commit
5ea314d012
@ -432,7 +432,7 @@ a [api:PasswordValidator]:
|
|||||||
$validator = new PasswordValidator();
|
$validator = new PasswordValidator();
|
||||||
$validator->minLength(7);
|
$validator->minLength(7);
|
||||||
$validator->checkHistoricalPasswords(6);
|
$validator->checkHistoricalPasswords(6);
|
||||||
$validator->characterStrength('lowercase','uppercase','digits','punctuation');
|
$validator->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));
|
||||||
Member::set_password_validator($validator);
|
Member::set_password_validator($validator);
|
||||||
|
|
||||||
In addition, you can tighten password security with the following configuration settings:
|
In addition, you can tighten password security with the following configuration settings:
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* $pwdVal = new PasswordValidator();
|
* $pwdVal = new PasswordValidator();
|
||||||
* $pwdValidator->minLength(7);
|
* $pwdValidator->minLength(7);
|
||||||
* $pwdValidator->checkHistoricalPasswords(6);
|
* $pwdValidator->checkHistoricalPasswords(6);
|
||||||
* $pwdValidator->characterStrength('lowercase','uppercase','digits','punctuation');
|
* $pwdValidator->characterStrength(3, array("lowercase", "uppercase", "digits", "punctuation"));
|
||||||
*
|
*
|
||||||
* Member::set_password_validator($pwdValidator);
|
* Member::set_password_validator($pwdValidator);
|
||||||
* </code>
|
* </code>
|
||||||
|
Loading…
Reference in New Issue
Block a user