2020-07-13 15:51:04 +08:00
|
|
|
<% provide(:head_title, '2FA Bypass') %>
|
|
|
|
<% 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_recovery.title" %></h1>
|
2020-07-13 15:51:04 +08:00
|
|
|
<%= form_with url: users_authenticate_with_recovery_code_path, local: true do %>
|
2020-07-13 22:05:23 +08:00
|
|
|
<p><%= t "devise.sessions.2fa_recovery.description" %></p>
|
|
|
|
<p class="input-group sci-input-container">
|
|
|
|
<%= label :recovery_code, t("devise.sessions.2fa_recovery.bypass_code") %>
|
2020-07-13 15:51:04 +08:00
|
|
|
<%= text_field_tag(:recovery_code, '', { class: "form-control sci-input-field" })%>
|
2020-07-13 22:05:23 +08:00
|
|
|
</p>
|
2020-07-13 15:51:04 +08:00
|
|
|
|
2020-07-13 22:05:23 +08:00
|
|
|
<div class="actions">
|
|
|
|
<%= button_tag t("devise.sessions.2fa_recovery.enter"), type: :submit, class: "btn btn-primary" %>
|
2020-07-13 15:51:04 +08:00
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|