mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +08:00
22 lines
869 B
Text
22 lines
869 B
Text
<div class="two-factor-container">
|
|
<div class="title">
|
|
<b><%= t("users.registrations.edit.2fa_title") %></b>
|
|
<% if current_user.two_factor_auth_enabled? %>
|
|
<span class="enabled">
|
|
<i class="fas fa-check-circle"></i>
|
|
<%= t("users.registrations.edit.2fa_enabled") %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|
|
<div class="description">
|
|
<%= t("users.registrations.edit.2fa_description") %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="two-factor-auth-button">
|
|
<% if current_user.two_factor_auth_enabled? %>
|
|
<button class="btn btn-secondary" id="twoFactorAuthenticationDisable"><%= t("users.registrations.edit.2fa_button_disable") %></button>
|
|
<% else %>
|
|
<button class="btn btn-primary" id="twoFactorAuthenticationEnable" data-qr-code-url="<%= users_2fa_qr_code_path %>"><%= t("users.registrations.edit.2fa_button") %></button>
|
|
<% end %>
|
|
</div>
|