Files
Redmine/app/views/twofa/select_scheme.html.erb
Go MAEDA be7f5e21fa Adds a setting to disable/enable/require 2fa auth (#1237).
Patch by Felix Schäfer.


git-svn-id: http://svn.redmine.org/redmine/trunk@19989 e93f8b46-1217-0410-a6f0-8f06a7374b81
2020-08-29 06:37:09 +00:00

20 lines
614 B
Plaintext

<%= title l('twofa_label_setup') %>
<%= form_tag({ controller: 'twofa', action: 'activate_init' }, method: :post) do %>
<div class="box">
<p><%=l 'twofa_notice_select' -%></p>
<p>
<% Redmine::Twofa.available_schemes.each_with_index do |s, idx| %>
<label style="display:block;"><%= radio_button_tag 'scheme', s, idx == 0 -%> <%=l "twofa__#{s}__name" -%></label>
<% end %>
</p>
</div>
<p><%= submit_tag l(:label_next).html_safe + " &#187;".html_safe -%></p>
<% end %>
<% unless @user.must_activate_twofa? %>
<% content_for :sidebar do %>
<%= render partial: 'my/sidebar' %>
<% end %>
<% end %>