This is an automated email from the ASF dual-hosted git repository.
dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git
The following commit(s) were added to refs/heads/master by this push:
new a6ccb74369 [INLONG-11429][Dashboard] Modify password to support
uppercase letters (#11430)
a6ccb74369 is described below
commit a6ccb7436979add24c7564892df7c9fdc88777e8
Author: kamianlaida <[email protected]>
AuthorDate: Tue Oct 29 22:47:01 2024 +0800
[INLONG-11429][Dashboard] Modify password to support uppercase letters
(#11430)
---
inlong-dashboard/src/ui/components/Layout/NavWidget/PasswordModal.tsx | 4 ++--
inlong-dashboard/src/ui/locales/cn.json | 2 +-
inlong-dashboard/src/ui/locales/en.json | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git
a/inlong-dashboard/src/ui/components/Layout/NavWidget/PasswordModal.tsx
b/inlong-dashboard/src/ui/components/Layout/NavWidget/PasswordModal.tsx
index 0e4e429ba1..2637d6e765 100644
--- a/inlong-dashboard/src/ui/components/Layout/NavWidget/PasswordModal.tsx
+++ b/inlong-dashboard/src/ui/components/Layout/NavWidget/PasswordModal.tsx
@@ -52,7 +52,7 @@ const Comp: React.FC<Props> = ({ id, ...modalProps }) => {
name: 'newPassword',
rules: [
{ required: true },
- { pattern: /^[@0-9a-z_-]+$/, message: t('pages.Login.PasswordRules') },
+ { pattern: /^[@0-9a-zA-Z_-]+$/, message:
t('pages.Login.PasswordRules') },
],
},
{
@@ -61,7 +61,7 @@ const Comp: React.FC<Props> = ({ id, ...modalProps }) => {
name: 'confirmPassword',
rules: [
{ required: true },
- { pattern: /^[@0-9a-z_-]+$/, message: t('pages.Login.PasswordRules') },
+ { pattern: /^[@0-9a-zA-Z_-]+$/, message:
t('pages.Login.PasswordRules') },
({ getFieldValue }) => ({
validator(_, val) {
if (val) {
diff --git a/inlong-dashboard/src/ui/locales/cn.json
b/inlong-dashboard/src/ui/locales/cn.json
index d68a58001c..f8fae84023 100644
--- a/inlong-dashboard/src/ui/locales/cn.json
+++ b/inlong-dashboard/src/ui/locales/cn.json
@@ -878,7 +878,7 @@
"pages.ClusterTags.TagPlaceholder": "请输入标签",
"pages.ClusterTags.TenantPlaceholder": "请选择租户",
"pages.Login.PleaseEnterUserName": "请输入用户名",
- "pages.Login.PasswordRules": "只能包含小写字母、数字、中划线、下划线、@",
+ "pages.Login.PasswordRules": "只能包含字母、数字、中划线、下划线、@",
"pages.Login.Login": "登录",
"pages.Login.PleaseEnterYourPassword": "请输入密码",
"pages.UserManagement.DetailModal.Day": "天",
diff --git a/inlong-dashboard/src/ui/locales/en.json
b/inlong-dashboard/src/ui/locales/en.json
index 144e15e37d..df05a26629 100644
--- a/inlong-dashboard/src/ui/locales/en.json
+++ b/inlong-dashboard/src/ui/locales/en.json
@@ -878,7 +878,7 @@
"pages.ClusterTags.TagPlaceholder": "Please enter a tag",
"pages.ClusterTags.TenantPlaceholder": "Please select a tenant",
"pages.Login.PleaseEnterUserName": "Please enter user name",
- "pages.Login.PasswordRules": "Only lowercase letters, numbers, minus, @, and
underscores",
+ "pages.Login.PasswordRules": "Only letters, numbers, minus, @, and
underscores",
"pages.Login.Login": "Login",
"pages.Login.PleaseEnterYourPassword": "Please enter your password",
"pages.UserManagement.DetailModal.Day": "Days",