mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 20:50:19 +08:00
Support more special chars in password validating
This commit is contained in:
@ -37,7 +37,7 @@ function isValidOption_Aa123(password) {
|
||||
}
|
||||
|
||||
function isValidOption_SpecialChar(password) {
|
||||
const regex = /^(?=.*[!@#$%^&*]).+$/;
|
||||
const regex = /^(?=.*[!-/:-@[-`{-~]).+$/;
|
||||
if (!regex.test(password)) {
|
||||
return i18next.t("user:The password must contain at least one special character");
|
||||
}
|
||||
|
Reference in New Issue
Block a user