Files
danbooru/app/views/passwords/edit.html.erb
evazion f25bace766 users: refactor change password page.
* Fix users being redirected back to the change password page after
  successfully changing their password.
* Move passwords controller out of /maintenance/ namespace.
* Add tests.
2020-03-08 23:18:08 -05:00

15 lines
504 B
Plaintext

<% page_title "Change Password" %>
<div id="c-passwords">
<div id="a-edit">
<h1>Change Password</h1>
<%= edit_form_for(@user, url: user_password_path(@user)) do |f| %>
<%= f.input :old_password, as: :password, hint: "Re-enter your current password." %>
<%= f.input :password, label: "New password", hint: "Must be at least 5 characters long." %>
<%= f.input :password_confirmation, label: "Confirm new password" %>
<%= f.submit "Save" %>
<% end %>
</div>
</div>