docbrown/app/views/users/_account_set_password.html.erb
Michael Kohl 96cf8f90e0
[15-minute fix] Update password reset wording (#14125)
* Update password reset wording

* Update app/views/users/_account_set_password.html.erb

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>

Co-authored-by: Ridhwana <Ridhwana.Khan16@gmail.com>
2021-07-05 09:33:51 +07:00

29 lines
1.6 KiB
Text

<div class="crayons-card crayons-card--content-rows">
<header>
<h2 class="crayons-subtitle-1">
Set new password
</h2>
<p class="color-base-70">
If your account was created using social account authentication, you may prefer to add an email
log in. If you signed up with a social media account, <a href="<%= new_user_password_path %>">
please reset the password</a> for your primary email address (<%= current_user.email %>) in
order to enable this. Please note that email login is in addition to social login rather than
a replacement for it, so your authenticated social account will continue to be linked to your
account.
</header>
<%= form_with(url: user_update_password_path, data: { testid: "update-password-form" }) do |f| %>
<div class="crayons-field mb-4">
<%= f.label :current_password, class: "crayons-field__label" %>
<%= f.password_field :current_password, class: "crayons-textfield", autocomplete: "off", required: true %>
</div>
<div class="crayons-field mb-4">
<%= f.label :password, class: "crayons-field__label" %>
<%= f.password_field :password, class: "crayons-textfield", autocomplete: "off", required: true %>
</div>
<div class="crayons-field mb-4">
<%= f.label :password_confirmation, "Confirm new password", class: "crayons-field__label" %>
<%= f.password_field :password_confirmation, autocomplete: "off", class: "crayons-textfield", required: true %>
</div>
<button class="crayons-btn crayon-btn--secondary" type="submit">Set New Password</button>
<% end %>
</div>