blob: 90c42b595b9120a2e8de7f105a7a6443f5cf06b4 (
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
|
<h1>Enable second factor</h1>
<div id="page_editor">
<div class="node_description">Scan</div>
<div class="node_content">
<div class="otp_qr">
<%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri)
.as_svg(:module_size => 4, :viewbox => true,
:color => "000", :fill => "fff") %>
</div>
<span class="field_hint">Or enter the secret manually: <code><%= current_user.otp_pending_secret %></code></span>
</div>
<div class="node_description">Confirm</div>
<div class="node_content">
<%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %>
<%= text_field_tag :code, nil, :autofocus => true,
:autocomplete => "one-time-code", :inputmode => "numeric" %>
<%= button_tag :type => "submit", :class => "action_button" do %>
<%= icon("shield-check", library: "tabler", "aria-hidden": true) %> Confirm
<% end %>
<% end %>
<span class="field_hint">Enter the six-digit code your app shows
for “<%= OTP_ISSUER %>”.</span>
</div>
</div>
|