* Fix users being redirected back to the change password page after successfully changing their password. * Move passwords controller out of /maintenance/ namespace. * Add tests.
15 lines
504 B
Plaintext
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>
|