scinote-web/app/views/users/sessions/two_factor_auth.html.erb

24 lines
1,015 B
Plaintext
Raw Normal View History

2020-06-30 20:16:00 +08:00
<% provide(:head_title, t("devise.sessions.new.head_title")) %>
<% content_for(:body_class, 'sign-in-layout') %>
<div class="sign-in-container">
<div class="sign-in-form-wrapper">
<div class="center-block center-block-narrow">
2020-07-13 22:05:23 +08:00
<h1 class="log-in-title"><%= t "devise.sessions.2fa.title" %></h1>
2020-06-30 20:16:00 +08:00
<%= form_with url: users_authenticate_with_two_factor_url, local: true do %>
2021-09-28 18:27:51 +08:00
<%= hidden_field_tag :initial_page, @initial_page %>
2020-07-13 22:05:23 +08:00
<p><%= t "devise.sessions.2fa.description" %></p>
<p class="input-group sci-input-container">
2020-06-30 20:16:00 +08:00
<%= label :otp, t("devise.sessions.2fa.field") %>
<%= text_field_tag(:otp, '', { class: "form-control sci-input-field", autofocus: true})%>
2020-07-13 22:05:23 +08:00
</p>
2020-06-30 20:16:00 +08:00
2020-07-13 22:05:23 +08:00
<p class="actions">
<%= button_tag t("devise.sessions.2fa.enter"), type: :submit, class: "btn btn-primary" %>
</p>
2020-07-13 15:51:04 +08:00
2020-07-13 22:05:23 +08:00
<%= link_to t("devise.sessions.2fa.bypass_code_link"), users_two_factor_recovery_path %>
2020-06-30 20:16:00 +08:00
<% end %>
</div>
</div>
</div>