Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

FIX PasswordValidator->characterStrength() Documentation

  • Loading branch information...
commit 5ea314d0121523c279f8e4732dd80050107b752c 1 parent 14e5c80
@JayDevlin JayDevlin authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  docs/en/topics/security.md
  2. +1 −1  security/PasswordValidator.php
View
2  docs/en/topics/security.md
@@ -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
2  security/PasswordValidator.php
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.