Complexity is a pain... coming from where 12 characters and harden was required...
existing system is one letter, one number at minimum length..
if you want a almost harden password then you need to change the regex string for it to work, this is most likely not the best string, regex gives me indigestion...
in admin/functions/admin_access.php find line 442
Code:
if (!preg_match('/^(?=.*[a-zA-Z]+.*)(?=.*[\d]+.*)[\d\w\s[:punct:]]{' . $minLength . ',}$/', $password)) {
Change as below:
Code:
//if (!preg_match('/^(?=.*[a-zA-Z]+.*)(?=.*[\d]+.*)[\d\w\s[:punct:]]{' . $minLength . ',}$/', $password)) {
// passwords must contain 1 lower case letter, 1 upper case letter, 1 number, 1 non-word character and be of required minimum length or grater
if (!preg_match('/^(?=.*[a-z]+.*)(?=.*[A-Z]+.*)(?=.*[\d]+.*)(?=.*[\W])[\d\w\s[:punct:]]{' . $minLength . ',}$/', $password)) {
This forces 1 upper, 1 lower case letters, 1 number and one non-character... Cat2#has!
This does nothing to tell the user what they did wrong!! You would have to trap the error and feed it back to the user. The standard error message is all they well see until then.
Bookmarks