{% extends "dashboard/user/user-base.html.twig" %} {% block tab %}
    {% if offline_codes_count > 0 %} {% if are_offline_codes_enabled %}
  • {{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_DISABLE_OFFLINE_CODES')) | raw }}
  • {% else %}
  • {{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_ENABLE_OFFLINE_CODES')) | raw }}
  • {% endif %} {% endif %}
  • {{ esc_html__('Learn more', '2fas')|upper }}

{{ esc_html__("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.", '2fas')|raw }}

{% if offline_codes_count > 0 %}
{{ sprintf( _n( '%1$s %2$s %3$s %4$s Active %5$s Code %6$s', '%1$s %2$s %3$s %4$s Active %5$s Codes %6$s', offline_codes_count, '2fas' ), '

', offline_codes_count, '

', '

', '
', '

' )|raw }}
{% if quantity %}

{{ esc_html__('Out of', '2fas')|lower }}

{{ quantity }}

{{ sprintf( esc_html__('%1$s Generated %2$s Codes %3$s', '2fas'), '

', '
', '

' )|raw }}
{% endif %} {% set buttonText = esc_html__('Regenerate backup codes', '2fas') %} {% else %}

{{ esc_html__('No offline codes', '2fas') }}

{% set buttonText = esc_html__('Generate backup codes', '2fas') %} {% endif %}
{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_GENERATE_OFFLINE_CODES')) | raw }}
{{ create_form_nonce(constant('TwoFAS\\TwoFAS\\Http\\Action_Index::ACTION_PRINT_OFFLINE_CODES')) | raw }}
{% if date and offline_codes_count > 0 %}

{{ esc_html__( 'Last generated:', '2fas') }}{{ date }}

{% endif %}
{% endblock %}