mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
Fix null options in checkPasswordComplexity()
This commit is contained in:
@ -57,7 +57,7 @@ export function checkPasswordComplexity(password, options) {
|
|||||||
return i18next.t("login:Please input your password!");
|
return i18next.t("login:Please input your password!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (options.length === 0) {
|
if (!options || options.length === 0) {
|
||||||
options = ["AtLeast6"];
|
options = ["AtLeast6"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user