Commit 2c49c56e authored by Till Brehm's avatar Till Brehm

Fixed issue in password strength check.

parent 0cba4efb
......@@ -53,11 +53,12 @@ class validate_password {
$different += 1;
}
if (preg_match('/[`~!@#$%^&*()_+|\\=-[]}{\';:\/?.>,<" ]/', $password)) {
if (preg_match('/[`~!@#$%^&*()_+|\\=-\[\]}{\';:\/?.>,<" ]/', $password)) {
$points += 1;
$different += 1;
}
if ($points == 0 || $different < 3) {
if ($length >= 5 && $length <= 6) {
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment