blob: 6a9bb070e6af4ef3dc7dc9126eddc3a4707acda7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<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 %>
|