mirror of
https://github.com/casdoor/casdoor.git
synced 2025-08-28 23:01:35 +08:00
feat: fix validate text error caused by password length check (#3964)
This commit is contained in:
@@ -82,7 +82,7 @@ export function renderPasswordPopover(options, password) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function checkPasswordComplexity(password, options) {
|
export function checkPasswordComplexity(password, options) {
|
||||||
if (password.length === 0) {
|
if (!password?.length) {
|
||||||
return i18next.t("login:Please input your password!");
|
return i18next.t("login:Please input your password!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user