Quellcode durchsuchen

adding err message

kaori vor 4 Jahren
Ursprung
Commit
26d61a395f

+ 1 - 1
resource/locales/en_US/translation.json

@@ -856,6 +856,6 @@
     "confirm_new_password": "Confirm the new password",
     "email_is_required": "Email is required",
     "success_to_send_email": "Success to send email",
-    "incorrect_token_or_expired_url":"The token is incorrect or the URL has expired. Please reissue the link on the password reset page."
+    "incorrect_token_or_expired_url": "The token is incorrect or the URL has expired. Please resend a password reset request via the link below."
   }
 }

+ 1 - 1
resource/locales/ja_JP/translation.json

@@ -850,6 +850,6 @@
     "confirm_new_password": "新しいパスワードの確認",
     "email_is_required": "メールを入力してください",
     "success_to_send_email": "メールを送信しました",
-    "incorrect_token_or_expired_url":"トークンが正しくないか、URLの期限が切れています。パスワードリセットページからリンクを再発行してください。"
+    "incorrect_token_or_expired_url":"トークンが正しくないか、URLの有効期限が切れています。 以下のリンクからパスワードリセットリクエストを再送信してください。"
   }
 }

+ 1 - 1
resource/locales/zh_CN/translation.json

@@ -861,6 +861,6 @@
     "confirm_new_password": "确认新密码",
     "email_is_required": "电子邮件是必需的",
     "success_to_send_email": "我发了一封电子邮件",
-    "incorrect_token_or_expired_url":"令牌不正确或 URL 已过期。请重新发出密码重置页面中的链接"
+    "incorrect_token_or_expired_url":"令牌不正确或 URL 已过期。 请通过以下链接重新发送密码重置请求"
   }
 }

+ 5 - 2
src/server/views/login/error.html

@@ -38,9 +38,12 @@
           <h2>{{ t('login.Registration successful') }}</h2>
         </div>
         {% elseif reason === 'passwordResetOrder' %}
-        <div class="alert alert-warning">
-            <h2>{{ t('forgot_password.incorrect_token_or_expired_url') }}</h2>
+        <div class="alert alert-warning mb-3">
+          <h2>{{ t('forgot_password.incorrect_token_or_expired_url') }}</h2>
         </div>
+          <a href="/forgot-password" class="link-switch">
+            <i class="icon-key"></i> {{ t('forgot_password.forgot_password') }}
+          </a>
         {% else %}
         <div class="alert alert-warning">
             <h2>{{ t('login.Sign in error') }}</h2>