Fix wrong logic in password allowed regular expression
This commit is contained in:
parent
16e1c8f893
commit
81cd334664
1 changed files with 1 additions and 1 deletions
|
@ -776,7 +776,7 @@ class User
|
|||
$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}' : '+') . '$';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue