summaryrefslogtreecommitdiff
path: root/app/views/otp_enrollments
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/otp_enrollments')
-rw-r--r--app/views/otp_enrollments/show.html.erb17
1 files changed, 10 insertions, 7 deletions
diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb
index 9dfa3422..90c42b59 100644
--- a/app/views/otp_enrollments/show.html.erb
+++ b/app/views/otp_enrollments/show.html.erb
@@ -3,19 +3,22 @@
3<div id="page_editor"> 3<div id="page_editor">
4 <div class="node_description">Scan</div> 4 <div class="node_description">Scan</div>
5 <div class="node_content"> 5 <div class="node_content">
6 <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri) 6 <div class="otp_qr">
7 .as_svg(:module_size => 4, :viewbox => true, 7 <%= raw RQRCode::QRCode.new(current_user.pending_otp_provisioning_uri)
8 :color => "000", :fill => "fff") %> 8 .as_svg(:module_size => 4, :viewbox => true,
9 <span class="field_hint">Or enter the secret manually: 9 :color => "000", :fill => "fff") %>
10 <code><%= current_user.otp_pending_secret %></code></span> 10 </div>
11 <span class="field_hint">Or enter the secret manually: <code><%= current_user.otp_pending_secret %></code></span>
11 </div> 12 </div>
12 13
13 <div class="node_description">Confirm</div> 14 <div class="node_description">Confirm</div>
14 <div class="node_content"> 15 <div class="node_content">
15 <%= form_tag otp_enrollment_path, :method => :put do %> 16 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %>
16 <%= text_field_tag :code, nil, :autofocus => true, 17 <%= text_field_tag :code, nil, :autofocus => true,
17 :autocomplete => "one-time-code", :inputmode => "numeric" %> 18 :autocomplete => "one-time-code", :inputmode => "numeric" %>
18 <%= submit_tag "Confirm" %> 19 <%= button_tag :type => "submit", :class => "action_button" do %>
20 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> Confirm
21 <% end %>
19 <% end %> 22 <% end %>
20 <span class="field_hint">Enter the six-digit code your app shows 23 <span class="field_hint">Enter the six-digit code your app shows
21 for “<%= OTP_ISSUER %>”.</span> 24 for “<%= OTP_ISSUER %>”.</span>