From 3ac5aad648e8928486ac7ad322f9266eadad4e48 Mon Sep 17 00:00:00 2001 From: DacongDA Date: Wed, 16 Jul 2025 10:10:13 +0800 Subject: [PATCH] feat: fix validate text error caused by password length check (#3964) --- web/src/common/PasswordChecker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/common/PasswordChecker.js b/web/src/common/PasswordChecker.js index 1a95cfdd..c6b95900 100644 --- a/web/src/common/PasswordChecker.js +++ b/web/src/common/PasswordChecker.js @@ -82,7 +82,7 @@ export function renderPasswordPopover(options, password) { } export function checkPasswordComplexity(password, options) { - if (password.length === 0) { + if (!password?.length) { return i18next.t("login:Please input your password!"); }