From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../templates/preferences/two_factor/main.twig | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 srcs/phpmyadmin/templates/preferences/two_factor/main.twig (limited to 'srcs/phpmyadmin/templates/preferences/two_factor/main.twig') diff --git a/srcs/phpmyadmin/templates/preferences/two_factor/main.twig b/srcs/phpmyadmin/templates/preferences/two_factor/main.twig new file mode 100644 index 0000000..f95c047 --- /dev/null +++ b/srcs/phpmyadmin/templates/preferences/two_factor/main.twig @@ -0,0 +1,60 @@ +
+

+ {% 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 %} + {% 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 }}

+
+ {{ get_hidden_inputs() }} + +
+
+
+{% elseif num_backends > 0 %} +
+

{% trans "Configure two-factor authentication" %}

+
+
+ {{ get_hidden_inputs() }} + {% for backend in backends %} + + {% endfor %} + +
+
+
+{% endif %} -- cgit