diff --git a/app/assets/javascripts/discourse/templates/user/preferences.js.handlebars b/app/assets/javascripts/discourse/templates/user/preferences.js.handlebars index 903003ed1b3..0d0f723bd74 100644 --- a/app/assets/javascripts/discourse/templates/user/preferences.js.handlebars +++ b/app/assets/javascripts/discourse/templates/user/preferences.js.handlebars @@ -43,7 +43,14 @@
- <%=submit_tag(t('password_reset.update'), class: 'btn')%> + <%=submit_tag( @user.has_password? ? t('password_reset.update') : t('password_reset.save'), class: 'btn')%>
<%end%> <%end%> diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 35c33a3b95c..e1c96f6398d 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -246,6 +246,7 @@ en: in_progress: "(sending email)" error: "(error)" action: "Send Password Reset Email" + set_password: "Set Password" change_about: title: "Change About Me" diff --git a/config/locales/server.en.yml b/config/locales/server.en.yml index 07c574e9fd2..ce46a7a9848 100644 --- a/config/locales/server.en.yml +++ b/config/locales/server.en.yml @@ -300,8 +300,10 @@ en: password_reset: no_token: "Sorry, your token has expired. Please try resetting your password again." choose_new: "Please choose a new password" - update: 'update password' - title: 'reset password' + choose: "Please choose a password" + update: 'Update Password' + save: 'Set Password' + title: 'Reset Password' success: "You successfully changed your password and are now logged in." success_unapproved: "You successfully changed your password." continue: "Continue to %{site_name}" @@ -1218,6 +1220,16 @@ en: Click the following link to choose a new password: %{base_url}/users/password-reset/%{email_token} + set_password: + subject_template: "[%{site_name}] Set Password" + text_body_template: | + Somebody asked to add a password to your account on [%{site_name}](%{base_url}). Alternatively, you can log in using any supported online service (Google, Facebook, etc) that is associated with this validated email address. + + If you did not make this request, you can safely ignore this email. + + Click the following link to choose a password: + %{base_url}/users/password-reset/%{email_token} + authorize_email: subject_template: "[%{site_name}] Confirm your new email address" text_body_template: |