1
1
Fork 0

Fix wrong logic in password allowed regular expression

This commit is contained in:
Hypolite Petovan 2023-01-18 20:27:29 -05:00
parent 16e1c8f893
commit 81cd334664

View file

@ -776,7 +776,7 @@ class User
$allowed_characters = preg_quote($allowed_characters, $delimiter); $allowed_characters = preg_quote($allowed_characters, $delimiter);
} }
return '^[a-zA-Z0-9' . $allowed_characters . ']' . (PASSWORD_DEFAULT !== PASSWORD_BCRYPT ? '{1,72}' : '+') . '$'; return '^[a-zA-Z0-9' . $allowed_characters . ']' . (PASSWORD_DEFAULT === PASSWORD_BCRYPT ? '{1,72}' : '+') . '$';
} }
/** /**