<% 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".
<% if !resource.uses_password? && !resource.email %>
You can't remove this NeoPass yet, because you need to either set a
password or a recovery email first. (Ideally both!)
<% elsif !resource.uses_password? %>
Be extra careful here! Your account doesn't have a password set.
<% elsif !resource.email? %>
Be extra careful here! Your account doesn't have an email set.
<% end %>
<%= form.submit "Disconnect your NeoPass",
disabled: !resource.uses_password? && !resource.email? %>
<% end %>
<% end %>
<% content_for :stylesheets do %>
<%= stylesheet_link_tag "devise/registrations/edit" %>
<% end %>