{% extends "dashboard/user/user-base.html.twig" %} {% block tab %}
    {% if offline_codes_count > 0 %} {% if are_offline_codes_enabled %}
  • {{ url.create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Route::ACTION_DISABLE_OFFLINE_CODES')) | raw }}
  • {% else %}
  • {{ url.create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Route::ACTION_ENABLE_OFFLINE_CODES')) | raw }}
  • {% endif %} {% endif %}
  • LEARN MORE

Backup codes will allow you to authenticate to your WordPress account when you can't use tokens generated by 2FAS Authenticator. Generate codes and keep them in a safe place.

{% if offline_codes_count > 0 %}

{{ offline_codes_count }}

Active
Code{% if offline_codes_count > 1 %}s{% endif %}

{% if quantity %}

out of

{{ quantity }}

Generated
Codes

{% endif %} {% set buttonText = 'Regenerate backup codes' %} {% else %}

No offline codes

{% set buttonText = 'Generate backup codes' %} {% endif %}
{{ url.create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Route::ACTION_GENERATE_OFFLINE_CODES')) | raw }}
{% if date and offline_codes_count > 0 %}

Last generated: {{ date }}

{% endif %}
{% endblock %}