summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/views/elevations/new.html.erb3
-rw-r--r--app/views/otp_challenges/new.html.erb9
-rw-r--r--app/views/otp_enrollments/show.html.erb5
-rw-r--r--app/views/users/edit.html.erb5
4 files changed, 14 insertions, 8 deletions
diff --git a/app/views/elevations/new.html.erb b/app/views/elevations/new.html.erb
index 8dd64e78..8e1b59c2 100644
--- a/app/views/elevations/new.html.erb
+++ b/app/views/elevations/new.html.erb
@@ -10,7 +10,8 @@
10 <div class="layout_row_label"><%= t(".code") %></div> 10 <div class="layout_row_label"><%= t(".code") %></div>
11 <div class="layout_row_content"> 11 <div class="layout_row_content">
12 <%= text_field_tag :code, nil, :autocomplete => "one-time-code", 12 <%= text_field_tag :code, nil, :autocomplete => "one-time-code",
13 :inputmode => "numeric", :autofocus => true %> 13 :inputmode => "numeric", :autofocus => true, :maxlength => 6,
14 :pattern => "[0-9]{6}", :class => "otp_code" %>
14 </div> 15 </div>
15 </div> 16 </div>
16 17
diff --git a/app/views/otp_challenges/new.html.erb b/app/views/otp_challenges/new.html.erb
index 8247b262..ff7df222 100644
--- a/app/views/otp_challenges/new.html.erb
+++ b/app/views/otp_challenges/new.html.erb
@@ -6,10 +6,13 @@
6 <div class="layout_row_content"> 6 <div class="layout_row_content">
7 <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %> 7 <%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %>
8 <%= text_field_tag :code, nil, :autofocus => true, 8 <%= text_field_tag :code, nil, :autofocus => true,
9 :autocomplete => "one-time-code", :inputmode => "numeric" %> 9 :autocomplete => "one-time-code", :inputmode => "numeric",
10 <%= submit_tag t(".log_in") %> 10 :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
11 <span class="field_hint"> <%= t(".hint") %> </span>
12 <%= button_tag :type => "submit", :class => "action_button" do %>
13 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %>
14 <% end %>
11 <% end %> 15 <% end %>
12 <span class="field_hint"> <%= t(".hint") %> </span>
13 </div> 16 </div>
14 </div> 17 </div>
15</div> 18</div>
diff --git a/app/views/otp_enrollments/show.html.erb b/app/views/otp_enrollments/show.html.erb
index 16addb5b..a7604dd2 100644
--- a/app/views/otp_enrollments/show.html.erb
+++ b/app/views/otp_enrollments/show.html.erb
@@ -18,12 +18,13 @@
18 <div class="layout_row_content"> 18 <div class="layout_row_content">
19 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %> 19 <%= form_tag otp_enrollment_path, :method => :put, :class => "otp_form" do %>
20 <%= text_field_tag :code, nil, :autofocus => true, 20 <%= text_field_tag :code, nil, :autofocus => true,
21 :autocomplete => "one-time-code", :inputmode => "numeric" %> 21 :autocomplete => "one-time-code", :inputmode => "numeric",
22 :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
23 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span>
22 <%= button_tag :type => "submit", :class => "action_button" do %> 24 <%= button_tag :type => "submit", :class => "action_button" do %>
23 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %> 25 <%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".confirm") %>
24 <% end %> 26 <% end %>
25 <% end %> 27 <% end %>
26 <span class="field_hint"> <%= t(".app_hint", :issuer => OTP_ISSUER) %></span>
27 </div> 28 </div>
28 </div> 29 </div>
29</div> 30</div>
diff --git a/app/views/users/edit.html.erb b/app/views/users/edit.html.erb
index 2cf5a07c..14e19e39 100644
--- a/app/views/users/edit.html.erb
+++ b/app/views/users/edit.html.erb
@@ -59,8 +59,9 @@
59 <p><%= t(".enabled") %></p> 59 <p><%= t(".enabled") %></p>
60 <%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %> 60 <%= form_tag otp_enrollment_path, :method => :delete, :class => "otp_form" do %>
61 <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %> 61 <%= password_field_tag :current_password, nil, :placeholder => t(".current_password"), :autocomplete => "current-password" %>
62 <%= text_field_tag :code, nil, :placeholder => t(".current_code"), 62 <%= text_field_tag :code, nil, :autocomplete => "one-time-code", :inputmode => "numeric",
63 :autocomplete => "one-time-code", :inputmode => "numeric" %> 63 :maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
64 <span class="field_hint"> <%= t(".reset_hint") %> </span>
64 <%= button_tag :type => "submit", :class => "action_button" do %> 65 <%= button_tag :type => "submit", :class => "action_button" do %>
65 <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> <%= t(".disable_second_factor") %> 66 <%= icon("shield-off", library: "tabler", "aria-hidden": true) %> <%= t(".disable_second_factor") %>
66 <% end %> 67 <% end %>