about summary refs log tree commit diff stats
path: root/app/views/users/passwords/edit.html.haml
blob: 39db61eaf7594d46d7050e3a67b5c6a47a266ec9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- title "Change password"
%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