完成全项目响应式审核与换机交接

This commit is contained in:
2026-07-22 07:41:27 +08:00
parent a127280ce6
commit eced3d1e6e
77 changed files with 2052 additions and 378 deletions
+13
View File
@@ -0,0 +1,13 @@
export const PASSWORD_POLICY_MESSAGE =
"密码需为 8–32 位,并同时包含字母和数字";
export const validatePassword = (value) => {
const valid =
typeof value === "string" &&
value.length >= 8 &&
value.length <= 32 &&
/[A-Za-z]/.test(value) &&
/\d/.test(value);
return { valid, message: valid ? "" : PASSWORD_POLICY_MESSAGE };
};