mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 18:46:50 +08:00
27 lines
1.0 KiB
Plaintext
27 lines
1.0 KiB
Plaintext
<div id="simple-container">
|
|
<% if @update_result == :authorizing_new %>
|
|
<h2><%= t 'change_email.authorizing_old.title' %></h2>
|
|
<br>
|
|
<p><%= t 'change_email.authorizing_old.description' %></p>
|
|
<% elsif @update_result == :complete %>
|
|
<h2><%= t 'change_email.confirmed' %></h2>
|
|
<br>
|
|
<a class="btn" href="/"><%= t('change_email.please_continue', site_name: SiteSetting.title) %></a>
|
|
<% elsif @update_result == :invalid_second_factor%>
|
|
<h2><%= t('login.second_factor_title') %></h2>
|
|
<br>
|
|
<%=form_tag({}, method: :put) do %>
|
|
<%= label_tag(:second_factor_token, t('login.second_factor_description')) %>
|
|
<%= text_field_tag(:second_factor_token, nil, autofocus: true) %><br>
|
|
<% if @show_invalid_second_factor_error %>
|
|
<div class='alert alert-error'><%= t('login.invalid_second_factor_code') %></div>
|
|
<% end %>
|
|
<%= submit_tag t('submit'), class: "btn btn-primary" %>
|
|
<% end %>
|
|
<% else %>
|
|
<div class='alert alert-error'>
|
|
<%=t 'change_email.already_done' %>
|
|
</div>
|
|
<% end %>
|
|
</div>
|