mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 06:06:56 +08:00
20 lines
822 B
Text
20 lines
822 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-shield-alt"></i>
|
||
|
<%= t("users.registrations.edit.2fa_enabled") %>
|
||
|
</span>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="description">
|
||
|
<%= t("users.registrations.edit.2fa_description") %>
|
||
|
</div>
|
||
|
<% 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>
|