<%= form_for(@user, url: password_reset_path(params[:id])) do |f| %>
<%= hidden_field_tag :email, @user.email %>
<%= text_form_group f, :password, field_type: 'password' %>
<%= text_form_group f, :password_confirmation, field_type: 'password' %>
<%= add_recaptcha_challenge %>
<%= f.submit 'Update password', class: 'btn btn-primary' %>
<% end %>