1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-27 19:01:14 +00:00
redmine/app/views/twofa/activate_confirm.html.erb
Go MAEDA ab4bca896e Enable browser autocomplete for 2FA input fields (#41927).
Contributed by Thomas Butz (user:otbutz).


git-svn-id: https://svn.redmine.org/redmine/trunk@23360 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-12-08 06:18:26 +00:00

30 lines
1.0 KiB
Plaintext

<h2><%=l 'twofa_label_setup' -%></h2>
<div class="splitcontentleft">
<%= form_tag({ action: :activate,
scheme: @twofa_view[:scheme_name] },
{ method: :post,
id: 'twofa_form' }) do -%>
<div class="box">
<p><%=t "twofa__#{@twofa_view[:scheme_name]}__text_pairing_info_html" -%></p>
<div class="tabular">
<%= render partial: "twofa/#{@twofa_view[:scheme_name]}/new", locals: { twofa_view: @twofa_view } -%>
<p>
<label for="twofa_code"><%=l 'twofa_label_code' -%></label>
<%= text_field_tag :twofa_code, nil, autocomplete: 'one-time-code', autofocus: true -%>
</p>
</div>
</div>
<%= submit_tag l('button_activate'), name: :submit_otp -%>
<%= link_to l('twofa_resend_code'), { action: 'activate_init', scheme: @twofa_view[:scheme_name] }, method: :post if @twofa_view[:resendable] -%>
<% end %>
</div>
<% unless @user.must_activate_twofa? %>
<% content_for :sidebar do %>
<%= render :partial => 'my/sidebar' %>
<% end %>
<% end %>