Translated using Weblate (Norwegian Bokmål)
[phpmyadmin.git] / templates / prefs_twofactor.twig
blobe32ec21ef055ef77d87800749d087b0967a6115d
1 <div class="group">
2 <h2>
3 {% trans "Two-factor authentication status" %}
4 {{ Util_showDocu('two_factor') }}
5 </h2>
6 <div class="group-cnt">
7 {% if enabled %}
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>
11 <ul>
12 {% for item in missing %}
13     <li><code>{{ item.dep }}</code> ({{ item.class }})</li>
14 {% endfor %}
15 </ul>
16 {% else %}
17 {% if backend_id %}
18 <p>{% trans "Two-factor authentication is available and configured for this account." %}</p>
19 {% else %}
20 <p>{% trans "Two-factor authentication is available, but not configured for this account." %}</p>
21 {% endif %}
22 {% endif %}
23 {% else %}
24 <p>{% trans "Two-factor authentication is not available, enable phpMyAdmin configuration storage to use it." %}</p>
25 {% endif %}
26 </div>
27 </div>
29 {% if backend_id %}
30 <div class="group">
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 {{ Url_getHiddenInputs() }}
37 <input type="submit" name="2fa_remove" value="{% trans "Disable two-factor authentication" %}" />
38 </form>
39 </div>
40 </div>
41 {% elseif num_backends > 0 %}
42 <div class="group">
43 <h2>{% trans "Configure two-factor authentication" %}</h2>
44 <div class="group-cnt">
45 <form method="POST" action="prefs_twofactor.php">
46 {{ Url_getHiddenInputs() }}
47 {% for backend in backends %}
48 <label>
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>
52 </label>
53 {% endfor %}
54 <input type="submit" value="{% trans "Configure two-factor authentication" %}" />
55 </form>
56 </div>
57 </div>
58 {% endif %}