blob: 3d2d9eea16ae5b95b1771c9d5ca83c8d5268acf0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
%h2 Change your password
= devise_error_messages!
#principal
= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |f|
= f.hidden_field :reset_password_token
.field
= f.label :password, "New password"
- if @minimum_password_length
%em= "(#{@minimum_password_length} characters minimum)"
= f.password_field :password, autofocus: true, autocomplete: "off"
.field
= f.label :password_confirmation, "Confirm new password"
= f.password_field :password_confirmation, autocomplete: "off"
.submit-field
= f.submit "Change my password"
.navigation= link_to "← Back to thoughts", root_url
|