{% extends 'plugin_main_page.html.twig' %} {% block content %} {% include 'includes/config_bar.html.twig' with { 'twofas_light_totp_status': twofas_light_totp_status } %}

{{ esc_html__( 'Follow these instructions to configure 2FAS security tokens correctly.', '2fas-light' ) }}

{% include 'includes/configured_box.html.twig' with { 'twofas_light_user_is_configured': twofas_light_user_is_configured, 'twofas_light_user_configuration_date': twofas_light_user_configuration_date, 'twofas_light_totp_status': twofas_light_totp_status } %} {% if remember_browser_allowed %}

{{ esc_html__( 'Trusted web browsers on your devices', '2fas-light' ) }}

{{ esc_html__( 'The following list contains all of your trusted browsers and devices.', '2fas-light' ) }}

{{ sprintf( esc_html__('Logging in from the following web browsers/devices does not require Two Factor %sAuthentication.', '2fas-light'), '
' )|raw }}
{% include 'includes/trusted_devices.html.twig' with { 'trusted_devices': trusted_devices } %}
{{ esc_html__( 'How to add a new device?', '2fas-light' ) }}
{% endif %} {% include 'includes/backup_codes_box.html.twig' with { 'twofas_light_user_is_configured': twofas_light_user_is_configured, 'twofas_light_totp_status': twofas_light_totp_status } %} {% include 'includes/danger_zone_box.html.twig' with { 'twofas_light_user_is_configured': twofas_light_user_is_configured } %}
1
{{ esc_html__( 'Download 2FAS app', '2fas-light' ) }}
2
{{ esc_html__( 'Scan the QR code', '2fas-light' ) }}
3
{{ esc_html__( 'Enter 6-digit token', '2fas-light' ) }}
{% include 'steps/step_1.html.twig' with { 'twofas_light_plugin_path': twofas_light_plugin_path } %} {% include 'steps/step_2.html.twig' with { 'twofas_light_plugin_path': twofas_light_plugin_path, 'qr_code': qr_code } %} {% include 'steps/step_3.html.twig' with { 'totp_secret': totp_secret, 'form_nonce': create_form_nonce(constant('TwoFAS\\Light\\Http\\Action_Index::TWOFAS_ACTION_CONFIGURE_TOTP')) } %}
{% endblock %} {% block modals %} {% include 'includes/confirmation_modal.html.twig' %} {% include 'includes/remove_config_modal.html.twig' %} {% include 'includes/remove_trusted_device_modal.html.twig' %} {% include 'includes/private_key_modal.html.twig' with { 'totp_secret': totp_secret } %} {% include 'includes/backup_codes_modal.html.twig' %} {% include 'includes/backup_codes_modal_confirm.html.twig' %} {% include 'includes/how_to_add_a_new_device_modal.html.twig' %} {% include 'includes/totp_switch_modal.html.twig' %} {% endblock %}