2020-07-07 21:59:02 +08:00
|
|
|
<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">
|
2023-01-26 21:01:54 +08:00
|
|
|
<i class="fas fa-check-circle"></i>
|
2020-07-07 21:59:02 +08:00
|
|
|
<%= t("users.registrations.edit.2fa_enabled") %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
|
|
|
<%= t("users.registrations.edit.2fa_description") %>
|
|
|
|
</div>
|
2023-01-26 21:01:54 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="two-factor-auth-button">
|
2020-07-07 21:59:02 +08:00
|
|
|
<% 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>
|