Skip to content

Commit

Permalink
fix: language key in reset password
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Sep 23, 2020
1 parent 0fffe28 commit 2ad3305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion public/language/en-GB/reset_password.json
Expand Up @@ -7,11 +7,12 @@
"wrong_reset_code.message": "The reset code received was incorrect. Please try again, or <a href=\"/reset\">request a new reset code</a>.",
"new_password": "New Password",
"repeat_password": "Confirm Password",
"changing_password": "Changing Password",
"enter_email": "Please enter your <strong>email address</strong> and we will send you an email with instructions on how to reset your account.",
"enter_email_address": "Enter Email Address",
"password_reset_sent": "If the specified address corresponds to an existing user account, a password reset email was sent. Please note that only one email will be sent per minute.",
"invalid_email": "Invalid Email / Email does not exist!",
"password_too_short": "The password entered is too short, please pick a different password.",
"passwords_do_not_match": "The two passwords you've entered do not match.",
"password_expired": "Your password has expired, please choose a new password"
}
}
4 changes: 2 additions & 2 deletions public/src/client/reset_code.js
Expand Up @@ -2,7 +2,7 @@


define('forum/reset_code', ['zxcvbn'], function (zxcvbn) {
var ResetCode = {};
var ResetCode = {};

ResetCode.init = function () {
var reset_code = ajaxify.data.code;
Expand All @@ -26,7 +26,7 @@ define('forum/reset_code', ['zxcvbn'], function (zxcvbn) {
$('#notice').removeClass('hidden');
$('#notice strong').translateText('[[user:weak_password]]');
} else {
resetEl.prop('disabled', true).html('<i class="fa fa-spin fa-refresh"></i> Changing Password');
resetEl.prop('disabled', true).translateText('<i class="fa fa-spin fa-refresh"></i> [[reset_password:changing_password]]');
socket.emit('user.reset.commit', {
code: reset_code,
password: password.val(),
Expand Down

0 comments on commit 2ad3305

Please sign in to comment.