From 59a59715a1c26635dff7f3635bcf0d8d8b1f6a2d Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 11 Oct 2024 16:23:07 +0800 Subject: [PATCH] refactor: improve password hint text on reset password page (#6820) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area core /kind improvement /milestone 2.20.x #### What this PR does / why we need it: 优化重置密码页面的密码提示文本,以 https://github.com/halo-dev/halo/blob/aab8806f0d64b4c4cd009ff0a7d9687c9207ab2a/application/src/main/resources/config/i18n/messages_zh.properties#L66 为准。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- .../gateway_fragments/password_reset_email_reset.properties | 2 +- .../gateway_fragments/password_reset_email_reset_en.properties | 2 +- .../gateway_fragments/password_reset_email_reset_es.properties | 2 +- .../password_reset_email_reset_zh_TW.properties | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties index c8240e54e..978712db8 100644 --- a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset.properties @@ -1,4 +1,4 @@ form.password.label=密码 form.confirmPassword.label=确认密码 -form.password.tips=密码必须至少包含 8 个字符,并且至少包含一个大写字母、一个小写字母、一个数字和一个特殊字符。 +form.password.tips=密码只能使用大小写字母 (A-Z, a-z)、数字 (0-9),以及以下特殊字符: !@#$%^&*。 form.submit=修改密码 \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties index a69e1b81d..cbeb3eb21 100644 --- a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_en.properties @@ -1,4 +1,4 @@ form.password.label=Password form.confirmPassword.label=Confirm Password -form.password.tips=Password must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one special character. +form.password.tips=The password can only use uppercase and lowercase letters (A-Z, a-z), numbers (0-9), and the following special characters: !@#$%^&* form.submit=Change password \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties index 7c34bdbee..7bc35afcb 100644 --- a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_es.properties @@ -1,4 +1,4 @@ form.password.label=Contraseña form.confirmPassword.label=Confirmar Contraseña -form.password.tips=La contraseña debe tener al menos 8 caracteres e incluir al menos una letra mayúscula, una letra minúscula, un número y un carácter especial. +form.password.tips=La contraseña solo puede usar letras mayúsculas y minúsculas (A-Z, a-z), números (0-9) y los siguientes caracteres especiales: !@#$%^&*. form.submit=Cambiar Contraseña \ No newline at end of file diff --git a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties index 84d58c2aa..b39dcdd7b 100644 --- a/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties +++ b/application/src/main/resources/templates/gateway_fragments/password_reset_email_reset_zh_TW.properties @@ -1,4 +1,4 @@ form.password.label=密碼 form.confirmPassword.label=確認密碼 -form.password.tips=密碼必須至少包含 8 個字元,並且至少包含一個大寫字母、一個小寫字母、一個數字和一個特殊字元。 +form.password.tips=密碼只能使用大小寫字母 (A-Z, a-z)、數字 (0-9),以及以下特殊字符: !@#$%^&*。 form.submit=修改密碼 \ No newline at end of file