* 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>
29 lines
1.6 KiB
Text
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>
|