<%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put }) do |form| %>
<%= render "devise/shared/error_messages", resource: resource %>
<%= form.hidden_field :reset_password_token %>
<%= form.label :password, "New password" %>
<% if @minimum_password_length %>
(<%= @minimum_password_length %> characters minimum)
<% end %>
<%= form.password_field :password, autofocus: true, autocomplete: "off" %>
<%= form.label :password_confirmation, "Confirm new password" %>
<%= form.password_field :password_confirmation, autocomplete: "off" %>
<%= form.submit "Change my password" %>
<% end %>
<%= render "devise/shared/links" %>