feat: migrate app routes and business modules

This commit is contained in:
2026-08-12 18:22:59 +08:00
parent 555aa00043
commit cc706378c2
247 changed files with 28623 additions and 14988 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 };
};