<%= alert %>
<% if Current.user.verified? %>
Change your email
<% else %>
Verify your email
We sent a verification email to the address below. Check that email and follow those instructions to confirm it's your email address.
<%= button_to "Re-send verification email", identity_email_verification_path %>
<% end %>
<%= form_with(url: identity_email_path, method: :patch) do |form| %>
<% if @user.errors.any? %>
<%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:
<% @user.errors.each do |error| %>
- <%= error.full_message %>
<% end %>
<% end %>
<%= form.label :email, "New email", style: "display: block" %>
<%= form.email_field :email, required: true, autofocus: true %>
<%= form.label :password_challenge, style: "display: block" %>
<%= form.password_field :password_challenge, required: true, autocomplete: "current-password" %>
<%= form.submit "Save changes" %>
<% end %>
<%= link_to "Back", root_path %>