From 8e28bc17e8c052ee6d6967905f54218d45c7dd6c Mon Sep 17 00:00:00 2001 From: Augustin-FL Date: Tue, 24 Dec 2024 15:48:43 +0100 Subject: [PATCH] Fix login page design when 2FA is enabled --- fir_auth_2fa/templates/two_factor/login.html | 116 ++++++++++--------- 1 file changed, 61 insertions(+), 55 deletions(-) diff --git a/fir_auth_2fa/templates/two_factor/login.html b/fir_auth_2fa/templates/two_factor/login.html index 4eab2f9a..301954c8 100644 --- a/fir_auth_2fa/templates/two_factor/login.html +++ b/fir_auth_2fa/templates/two_factor/login.html @@ -7,70 +7,76 @@ {% if wizard.steps.current == 'auth' %}
-
-
{% elif wizard.steps.current == 'token' %}
-
-
+
+
+ {% csrf_token %} + Logo + + {{ wizard.management_form }} +
+

Please enter the token generated by your token generator.

+
+ {{ wizard.form }} +
+
+ {% if cancel_url %} + {% trans "Cancel" %} + {% endif %} + {% if wizard.steps.prev %} + + {% else %} + + {% endif %} + + +
+
{% endif %}