blob: 551d798c8694310c5a1f0e7960fdb90a1141f2f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<div class="auth_card">
<h1><%= t(".title") %></h1>
<%= form_tag otp_challenge_path, :method => :post, :class => "otp_form" do %>
<div class="login_field">
<%= label_tag :code, t(".code") %>
<%= text_field_tag :code, nil, :autofocus => true,
:autocomplete => "one-time-code", :inputmode => "numeric",
:maxlength => 6, :pattern => "[0-9]{6}", :class => "otp_code" %>
</div>
<span class="field_hint"><%= t(".hint") %></span>
<%= button_tag :type => "submit", :class => "action_button" do %>
<%= icon("shield-check", library: "tabler", "aria-hidden": true) %> <%= t(".log_in") %>
<% end %>
<% end %>
</div>
|