Skip to content

Commit

Permalink
Fix reset password form display
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Nov 16, 2022
1 parent c95e70c commit 23ae223
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/devise/passwords/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@
<%= devise_error_messages! %>
<%= f.hidden_field :reset_password_token %>

<div class="form_group col-4">
<div class="form_group col-6">
<%= f.label :password, "New password" %><br />
<%= f.password_field :password, autofocus: true, autocomplete: "off", class: "form-control", placeholder:"Password" %>
<% if @minimum_password_length %>
<small class="form-text text-muted"><%= @minimum_password_length %> characters minimum, 1 uppercase, 1 lowercase, 1 digit and 1 special character (#?!@$%^&*-;)</small><br />
<% end %>
</div>

<div class="form_group col-4 mb-4">
<div class="form_group col-6 mb-4">
<%= f.label :password_confirmation, "Confirm new password" %><br />
<%= f.password_field :password_confirmation, autocomplete: "off", class: "form-control", placeholder:"Confirmation Password" %>
</div>

<div class="form_group col-4">
<%= f.submit "Change my password", class: "btn btn-primary" %>
</div>
Expand Down

0 comments on commit 23ae223

Please sign in to comment.