3 {% trans "Two-factor authentication status" %}
4 {{ show_docu('two_factor') }}
6 <div class="group-cnt">
8 {% if num_backends == 0 %}
9 <p>{% trans "Two-factor authentication is not available, please install optional dependencies to enable authentication backends." %}</p>
10 <p>{% trans "Following composer packages are missing:" %}</p>
12 {% for item in missing %}
13 <li><code>{{ item.dep }}</code> ({{ item.class }})</li>
18 <p>{% trans "Two-factor authentication is available and configured for this account." %}</p>
20 <p>{% trans "Two-factor authentication is available, but not configured for this account." %}</p>
24 <p>{% trans "Two-factor authentication is not available, enable phpMyAdmin configuration storage to use it." %}</p>
31 <h2>{{ backend_name }}</h2>
32 <div class="group-cnt">
33 <p>{% trans "You have enabled two factor authentication." %}</p>
34 <p>{{ backend_description }}</p>
35 <form method="POST" action="prefs_twofactor.php">
36 {{ get_hidden_inputs() }}
37 <input class="btn btn-secondary" type="submit" name="2fa_remove" value="{% trans "Disable two-factor authentication" %}">
41 {% elseif num_backends > 0 %}
43 <h2>{% trans "Configure two-factor authentication" %}</h2>
44 <div class="group-cnt">
45 <form method="POST" action="prefs_twofactor.php">
46 {{ get_hidden_inputs() }}
47 {% for backend in backends %}
49 <input type="radio" name="2fa_configure" {% if backend["id"] == "" %}checked="checked"{% endif %} value="{{ backend["id"] }}">
50 <strong>{{ backend["name"] }}</strong>
51 <p>{{ backend["description"] }}</p>
54 <input class="btn btn-secondary" type="submit" value="{% trans "Configure two-factor authentication" %}">