From da1efa9270f56cc96fea87e6e15e3bea2b95cd5d Mon Sep 17 00:00:00 2001 From: jialin Date: Wed, 17 Dec 2025 15:05:39 +0800 Subject: [PATCH] fix: password length 64 --- src/config/index.ts | 4 ++-- src/locales/en-US/users.ts | 4 ++-- src/locales/ja-JP/users.ts | 4 ++-- src/locales/ru-RU/users.ts | 4 ++-- src/locales/zh-CN/users.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/config/index.ts b/src/config/index.ts index 0ec45e96..03e3e5b0 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -49,7 +49,7 @@ export const WatchEventType = { }; export const PasswordReg = - /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*_+])[a-zA-Z\d!@#$%^&*_+]{6,32}$/; + /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[!@#$%^&*_+])[a-zA-Z\d!@#$%^&*_+]{6,64}$/; export const uppercaseReg = /(?=.*[A-Z])/; @@ -61,7 +61,7 @@ export const specialCharacterReg = /(?=.*[\W_])/; export const noSpaceReg = /(?=\S+$)/; -export const lengthReg = /^.{6,32}$/; +export const lengthReg = /^.{6,64}$/; /** * Model name rules: diff --git a/src/locales/en-US/users.ts b/src/locales/en-US/users.ts index c3e27fa2..8b64f9bf 100644 --- a/src/locales/en-US/users.ts +++ b/src/locales/en-US/users.ts @@ -19,12 +19,12 @@ export default { 'users.form.currentpassword': 'Current Password', 'users.form.updatepassword': 'Modify Password', 'users.form.rule.password': - 'Contains uppercase and lowercase letters, numbers, and special characters(!@#$%^&*_+), 6 to 32 characters in length, no spaces allowed.', + 'Contains uppercase and lowercase letters, numbers, and special characters(!@#$%^&*_+), 6 to 64 characters in length, no spaces allowed.', 'users.password.uppcase': 'At least one uppercase letter', 'users.password.lowercase': 'At least one lowercase letter', 'users.password.number': 'At least one number', 'users.password.special': 'At least one special character', - 'users.password.length': 'Length between 6 and 32 characters', + 'users.password.length': 'Length between 6 and 64 characters', 'users.password.modify.title': 'Modify Password', 'users.password.modify.description': "For your account's security, please change your initial password.", diff --git a/src/locales/ja-JP/users.ts b/src/locales/ja-JP/users.ts index 558efd5a..a28b77e7 100644 --- a/src/locales/ja-JP/users.ts +++ b/src/locales/ja-JP/users.ts @@ -20,12 +20,12 @@ export default { 'users.form.currentpassword': '現在のパスワード', 'users.form.updatepassword': 'パスワードを変更', 'users.form.rule.password': - '大文字と小文字、数字、特殊文字(!@#$%^&*_+)を含む6〜32文字で、スペースは使用できません。', + '大文字と小文字、数字、特殊文字(!@#$%^&*_+)を含む6〜64文字で、スペースは使用できません。', 'users.password.uppcase': '少なくとも1つの大文字を含む', 'users.password.lowercase': '少なくとも1つの小文字を含む', 'users.password.number': '少なくとも1つの数字を含む', 'users.password.special': '少なくとも1つの特殊文字を含む', - 'users.password.length': '6〜32文字の長さ', + 'users.password.length': '6〜64文字の長さ', 'users.password.modify.title': 'パスワードを変更', 'users.password.modify.description': 'アカウントのセキュリティのため、初期パスワードを変更してください。', diff --git a/src/locales/ru-RU/users.ts b/src/locales/ru-RU/users.ts index 50fd71ad..bdb133cc 100644 --- a/src/locales/ru-RU/users.ts +++ b/src/locales/ru-RU/users.ts @@ -20,12 +20,12 @@ export default { 'users.form.currentpassword': 'Текущий пароль', 'users.form.updatepassword': 'Изменить пароль', 'users.form.rule.password': - 'Должен содержать заглавные и строчные буквы, цифры и спецсимволы (!@#$%^&*_+), длина 6-32 символов, без пробелов.', + 'Должен содержать заглавные и строчные буквы, цифры и спецсимволы (!@#$%^&*_+), длина 6-64 символов, без пробелов.', 'users.password.uppcase': 'Минимум одна заглавная буква', 'users.password.lowercase': 'Минимум одна строчная буква', 'users.password.number': 'Минимум одна цифра', 'users.password.special': 'Минимум один спецсимвол', - 'users.password.length': 'Длина от 6 до 32 символов', + 'users.password.length': 'Длина от 6 до 64 символов', 'users.password.modify.title': 'Смена пароля', 'users.password.modify.description': 'В целях безопасности измените первоначальный пароль.', diff --git a/src/locales/zh-CN/users.ts b/src/locales/zh-CN/users.ts index 1f12562a..4b9aaa13 100644 --- a/src/locales/zh-CN/users.ts +++ b/src/locales/zh-CN/users.ts @@ -19,12 +19,12 @@ export default { 'users.form.currentpassword': '当前密码', 'users.form.updatepassword': '修改密码', 'users.form.rule.password': - '包含大小写字母、数字和特殊字符(!@#$%^&*_+),6至32个字符,不允许有空格', + '包含大小写字母、数字和特殊字符(!@#$%^&*_+),6至64个字符,不允许有空格', 'users.password.uppcase': '至少包含一个大写字母', 'users.password.lowercase': '至少包含一个小写字母', 'users.password.number': '至少包含一个数字', 'users.password.special': '至少包含一个特殊字符', - 'users.password.length': '长度在6至32个字符之间', + 'users.password.length': '长度在6至64个字符之间', 'users.password.modify.title': '修改密码', 'users.password.modify.description': '为了确保您的账户安全,请修改初始密码', 'users.password.confirm': '确认新密码',