{% extends "dashboard/base.html.twig" %} {% block class %}twofas-user{% endblock %} {% block page %}
1

{{ esc_html__('First Factor', '2fas') }}

{{ esc_html__('Your login & password', '2fas')|raw }}

2

{{ esc_html__('Second Factor', '2fas') }}

{{ esc_html__('Additional layer of security', '2fas') }}

{% if is_2fa_enabled %} {% set button_class = 'twofas-enabled' %} {% if is_2fa_enabled_in_legacy_mode %} {% set action = constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_DISABLE_SMS') %} {% else %} {% set action = constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_DISABLE_TOTP') %} {% endif %} {% else %} {% set button_class = 'twofas-disabled' %} {% set action = constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_ENABLE_TOTP') %} {% endif %}
{{ create_form_nonce(action) | raw }}

{{ esc_html__('2FAS Tokens', '2fas') }}

{% if is_2fa_enabled and is_totp_enabled %} {% else %} {% endif %}

{{ esc_html__('Backup codes', '2fas') }}

{% if (is_2fa_enabled and is_sms_enabled and is_plan_premium) or (is_2fa_enabled and are_offline_codes_enabled and offline_codes_count > 0) %} {% else %} {% endif %}

{{ esc_html__('Trusted devices', '2fas') }}

{% if is_2fa_enabled and trusted_device_count > 0 %} {% else %} {% endif %}
3

{{ esc_html__('Admin Panel', '2fas') }}

{{ esc_html__('Area that you want to secure', '2fas') }}

{% block tab %}{% endblock %} {% include 'modals/error-modal.html.twig' %} {% include 'modals/confirmation/disable-totp-modal.html.twig' %} {% endblock %}