<%= content_for :page_title, t(".page_title") %> <%= settings_section title: t(".mfa_title"), subtitle: t(".mfa_description") do %>
<%= icon "shield-check" %>
<% if Current.user.otp_required? %>

Two-factor authentication is enabled

Your account is protected with an additional layer of security.

<% else %>

Two-factor authentication is disabled

Enable 2FA to add an extra layer of security to your account.

<% end %>
<% if Current.user.otp_required? %> <%= render DS::Button.new( text: t(".disable_mfa"), variant: "secondary", href: disable_mfa_path, method: :delete, confirm: CustomConfirm.new( title: t(".disable_mfa_confirm"), body: t(".disable_mfa_confirm"), btn_text: t(".disable_mfa"), destructive: true ) ) %> <% else %> <%= render DS::Link.new( text: t(".enable_mfa"), variant: "primary", href: new_mfa_path ) %> <% end %>
<% end %>