<% if @update_result == :authorizing_new %>
<%= t 'change_email.authorizing_old.title' %>
<%= t 'change_email.authorizing_old.description' %>
<% elsif @update_result == :complete %>
<%= t 'change_email.confirmed' %>
<%= t('change_email.please_continue', site_name: SiteSetting.title) %>
<% elsif @update_result == :invalid_second_factor%>
<%= t('login.second_factor_title') %>
<%=form_tag({}, method: :put) do %>
<%= label_tag(:second_factor_token, t('login.second_factor_description')) %>
<%= text_field_tag(:second_factor_token, nil, autofocus: true) %>
<% if @show_invalid_second_factor_error %>
<%= t('login.invalid_second_factor_code') %>
<% end %>
<%= submit_tag t('submit'), class: "btn btn-primary" %>
<% end %>
<% else %>
<%=t 'change_email.already_done' %>
<% end %>