mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
22 lines
938 B
Text
22 lines
938 B
Text
<% 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">
|
|
<h1 class="log-in-title"><%= t "devise.sessions.2fa.title" %></h1>
|
|
<%= form_with url: users_authenticate_with_two_factor_url, local: true do %>
|
|
<p><%= t "devise.sessions.2fa.description" %></p>
|
|
<p class="input-group sci-input-container">
|
|
<%= label :otp, t("devise.sessions.2fa.field") %>
|
|
<%= text_field_tag(:otp, '', { class: "form-control sci-input-field" })%>
|
|
</p>
|
|
|
|
<p class="actions">
|
|
<%= button_tag t("devise.sessions.2fa.enter"), type: :submit, class: "btn btn-primary" %>
|
|
</p>
|
|
|
|
<%= link_to t("devise.sessions.2fa.bypass_code_link"), users_two_factor_recovery_path %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|