Răsfoiți Sursa

fix:修改注册密码提示

hanyang 1 an în urmă
părinte
comite
49aeaabe48
3 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 1 1
      public/i18n/lang-en.json
  2. 1 1
      public/i18n/lang-zh.json
  3. 1 1
      src/modules/login/auth.js

+ 1 - 1
public/i18n/lang-en.json

@@ -42,7 +42,7 @@
     "hasAccount": "Already have an account?",
     "noAccount": "Don't have an account?",
     "usernameLength": "Username must be between 3 and 20 characters long",
-    "passwordLength": "Password must be between 6 and 20 characters long",
+    "passwordLength": "Password length must be at least 8 characters and contain both numbers and letters.",
     "emailFormat": "Incorrect email format",
     "system": "System Settings",
     "logout": "Exit",

+ 1 - 1
public/i18n/lang-zh.json

@@ -42,7 +42,7 @@
     "noAccount": "没有账号?",
     "hasAccount": "已有账号?",
     "usernameLength": "用户名长度必须在3-20个字符之间",
-    "passwordLength": "密码长度必须在6-20个字符之间",
+    "passwordLength": "密码长度至少8个字符,且包含数组和字母两种",
     "emailFormat": "邮箱格式不正确",
     "system": "系统设置",
     "logout": "退出登录",

+ 1 - 1
src/modules/login/auth.js

@@ -10,7 +10,7 @@ export function getLoginFormRules(t) {
     ],
     password: [
       { required: true, message: t('login.passwordTips'), trigger: 'blur' },
-      { minLength: 8, maxLength: 20, message: t('login.passwordLength'), trigger: 'blur' }
+      { minLength: 8, message: t('login.passwordLength'), trigger: 'blur' }
     ]
   };
 }