You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
803 B

  1. <h2>Change your password</h2>
  2. <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f| %>
  3. <%= devise_error_messages! %>
  4. <%= f.hidden_field :reset_password_token %>
  5. <div class="field">
  6. <%= f.label :password, "New password" %><br />
  7. <% if @minimum_password_length %>
  8. <em>(<%= @minimum_password_length %> characters minimum)</em><br />
  9. <% end %>
  10. <%= f.password_field :password, autofocus: true, autocomplete: "off" %>
  11. </div>
  12. <div class="field">
  13. <%= f.label :password_confirmation, "Confirm new password" %><br />
  14. <%= f.password_field :password_confirmation, autocomplete: "off" %>
  15. </div>
  16. <div class="actions">
  17. <%= f.submit "Change my password" %>
  18. </div>
  19. <% end %>
  20. <%= render "devise/shared/links" %>