{% extends "dashboard/user/user-base.html.twig" %} {% block tab %}
    {% if is_totp_configured %} {% if is_totp_enabled %}
  • {{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_DISABLE_TOTP')) | raw }}
  • {% else %}
  • {{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_ENABLE_TOTP')) | raw }}
  • {{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_REMOVE_TOTP_CONFIGURATION')) | raw }}
  • {% endif %} {% endif %}
  • {{ esc_html__('Learn more', '2fas')|upper }}

{{ esc_html__('To correctly configure the plugin and log in by means of two-factor authentication, download 2FAS Authenticator app or another application that generates TOTP tokens (e.g. Google Authenticator), and follow the steps below. Remember that 2FAS Authenticator app largely speeds up the verification process and makes it much more convenient, as it enables you to log in by one click on your mobile, without the need of retyping the code.', '2fas') }}

{{ esc_html__('2FAS Tokens are already configured.', '2fas') }}

{{ esc_html__('If you want to configure another app/device, click button below.', '2fas') }}

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

{{ esc_html__('Step 1', '2fas') }}

{{ esc_html__('Get the App', '2fas' ) }}

{{ esc_html__('Download 2FAS Authenticator app to your smartphone to start using tokens.', '2fas') }}

QR code

{{ esc_html__('Step 2', '2fas') }}

{{ esc_html__('Scan QR code', '2fas') }}
QR code
{{ esc_html__('Click to configure with 2fas app', '2fas')|upper }}

{{ esc_html__('Please, scan the following QR code with your app.', '2fas') }}

( {{ esc_html__('Instead of using the QR code you can ', '2fas') }}{{ esc_html__('Enter your private key manually', '2fas')|lower }}.)

{{ totp_secret }}

{% if not is_totp_configured %}
{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_RELOAD_QR_CODE')) | raw }}
{% endif %}

Step 3

{{ esc_html__('Enter token', '2fas') }}

{{ esc_html__('Enter the 6-digit token generated by the app and enable TOTP protection.', '2fas') }}

{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_CONFIGURE_TOTP')) | raw }}
{% include 'modals/qr-modal.html.twig' %} {% include 'modals/confirmation/reload-warning-modal.html.twig' %} {% include 'modals/confirmation/delete-totp-modal.html.twig' %} {% endblock %}