Settings

<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put, class: "settings-form" }) do |f| %>

Your info

<%= render "devise/shared/error_messages", resource: resource %>
<%= f.label :name, 'DTI Username' %> Use this to log in to Dress to Impress!
<%= f.text_field :name, autocomplete: "username" %>
<%= f.label :email %> This can help you recover your account later.
<%= f.email_field :email, autocomplete: "email" %>
<%= f.label :password, "New password" %> Leave blank if you don't want to change it.
<%= f.password_field :password, autocomplete: "new-password" %> <% if @minimum_password_length %>
<%= @minimum_password_length %> characters minimum <% end %>
<%= f.label :password_confirmation, "New password confirmation" %>
<%= f.password_field :password_confirmation, autocomplete: "new-password" %>
<%= f.label :current_password %> We need your current password to confirm your changes.
<%= f.password_field :current_password, autocomplete: "current-password" %>
<%= f.submit "Save changes" %>
<% end %> <% if resource.uses_neopass? %> <%= form_with url: user_neopass_connection_path(resource.user), method: :delete, class: "settings-form", data: { turbo_confirm: "Are you sure? Without a NeoPass, you'll need to use " + "your password or your recovery email \"#{resource.email}\" to " + "log in again.\n\nMake sure you have everything all set up first! " + "Otherwise, you might be locked out of this account forever!" } do |form| %>

Your NeoPass

NeoPass ID: <%= resource.neopass_friendly_id %>

You can log into your Dress to Impress account with NeoPass, or with your username and password. If you ever lose access to your NeoPass, you can still use "Forgot your password?" to recover your Dress to Impress account, using the Email saved in "Your info".

<%= form.submit "Disconnect your NeoPass" %> <% end %> <% end %> <% content_for :stylesheets do %> <%= stylesheet_link_tag "devise/registrations/edit" %> <% end %>