kaori 4 лет назад
Родитель
Сommit
d827f97084

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

@@ -857,6 +857,6 @@
     "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 resend a password reset request via the link below.",
-    "new_password_and_confirmation_are_not_same": "new Password and the Confirmation are not the same"
+    "password_and_confirm_password_does_not_match": "Password and confirm password does not match"
   }
 }

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

@@ -851,6 +851,6 @@
     "email_is_required": "メールを入力してください",
     "success_to_send_email": "メールを送信しました",
     "incorrect_token_or_expired_url":"トークンが正しくないか、URLの有効期限が切れています。 以下のリンクからパスワードリセットリクエストを再送信してください。",
-    "new_password_and_confirmation_are_not_same": "新しいパスワードと確認用のパスワードが同じではありません"
+    "password_and_confirm_password_does_not_match": "パスワードと確認パスワードが一致しません"
   }
 }

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

@@ -862,6 +862,6 @@
     "email_is_required": "电子邮件是必需的",
     "success_to_send_email": "我发了一封电子邮件",
     "incorrect_token_or_expired_url":"令牌不正确或 URL 已过期。 请通过以下链接重新发送密码重置请求",
-    "new_password_and_confirmation_are_not_same": "新密码和确认不一样"
+    "password_and_confirm_password_does_not_match": "密码和确认密码不匹配"
   }
 }

+ 3 - 3
src/client/js/components/PasswordResetExecutionForm.jsx

@@ -13,7 +13,7 @@ const PasswordResetExecutionForm = (props) => {
   // console.log(newPassword);
   // console.log(newPasswordConfirm);
 
-  const onClickSubmit = async(e) => {
+  const changePassword = async(e) => {
     e.preventDefault();
 
     if (newPassword === '' || newPasswordConfirm === '') {
@@ -22,7 +22,7 @@ const PasswordResetExecutionForm = (props) => {
     }
 
     if (newPassword !== newPasswordConfirm) {
-      toastError('err', t('forgot_password.new_password_and_confirmation_are_not_same'));
+      toastError('err', t('forgot_password.password_and_confirm_password_does_not_match'));
       return;
     }
 
@@ -44,7 +44,7 @@ const PasswordResetExecutionForm = (props) => {
   };
 
   return (
-    <form role="form" className="form" onSubmit={onClickSubmit}>
+    <form role="form" onSubmit={changePassword}>
       <div className="form-group">
         <div className="input-group">
           <input