{% trans "Two-factor authentication status" %} {{ show_docu('two_factor') }}
{% if enabled %} {% if num_backends == 0 %}

{% trans "Two-factor authentication is not available, please install optional dependencies to enable authentication backends." %}

{% trans "Following composer packages are missing:" %}

    {% for item in missing %}
  • {{ item.dep }} ({{ item.class }})
  • {% endfor %}
{% else %} {% if backend_id %}

{% trans "Two-factor authentication is available and configured for this account." %}

{% else %}

{% trans "Two-factor authentication is available, but not configured for this account." %}

{% endif %} {% if missing|length > 0 %}

{{ 'Please install optional dependencies to enable more authentication backends.'|trans }} {{ 'Following composer packages are missing:'|trans }}

    {% for item in missing %}
  • {{ item.dep }} ({{ item.class }})
  • {% endfor %}
{% endif %} {% endif %} {% else %}

{% trans "Two-factor authentication is not available, enable phpMyAdmin configuration storage to use it." %}

{% endif %}
{% if backend_id %}
{{ backend_name }}

{% trans "You have enabled two factor authentication." %}

{{ backend_description }}

{% if backend_id == 'key' %} {% endif %}
{{ get_hidden_inputs() }}
{% elseif num_backends > 0 %}
{% trans "Configure two-factor authentication" %}
{{ get_hidden_inputs() }} {% for backend in backends %} {% endfor %}
{% endif %}