Skip to content

Commit

Permalink
[INLONG-11429][Dashboard] Modify password to support uppercase letters
Browse files Browse the repository at this point in the history
  • Loading branch information
wohainilaodou committed Oct 29, 2024
1 parent 79d9430 commit fa17b66
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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') },
],
},
{
Expand All @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion inlong-dashboard/src/ui/locales/cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "",
Expand Down
2 changes: 1 addition & 1 deletion inlong-dashboard/src/ui/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fa17b66

Please sign in to comment.