change password requirements
This commit is contained in:
parent
110fd8669f
commit
6df7482f0f
|
@ -113,6 +113,8 @@ class Panel {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(strlen($password) < 15) {
|
||||||
|
|
||||||
$character_class = 0;
|
$character_class = 0;
|
||||||
|
|
||||||
if (preg_match('/[[:lower:]]/', $password)) {
|
if (preg_match('/[[:lower:]]/', $password)) {
|
||||||
|
@ -141,7 +143,9 @@ class Panel {
|
||||||
|
|
||||||
if ($character_class < 3) {
|
if ($character_class < 3) {
|
||||||
|
|
||||||
$messages[] = "Password must contain characters from at least three of the following four groups: Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters.";
|
$messages[] = "Passwords under 15 characters must contain characters from at least three of the following four groups: Lower Case Letters, Uppler Case Leters, Numbers, Puncuation/Special Characters. Passwords 15 or more characters long do not have any complexity requirements.";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user