From 9ef86e0a820ea693b5775f8371a6b353b806b569 Mon Sep 17 00:00:00 2001 From: Dani Hodovic Date: Thu, 8 Aug 2024 15:28:42 -0300 Subject: [PATCH] fix: make 2FA authentication code background darker (#111) On darker themes it's impossible to scan the 2FA code. Make the background image of the QR code a gray tone to fix scanning for darker themes such as DaisyUI business. --- allauth_ui/templates/mfa/totp/activate_form.html | 10 ++++++---- tests/settings.py | 3 +-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/allauth_ui/templates/mfa/totp/activate_form.html b/allauth_ui/templates/mfa/totp/activate_form.html index 1bc78a8..9238ae7 100644 --- a/allauth_ui/templates/mfa/totp/activate_form.html +++ b/allauth_ui/templates/mfa/totp/activate_form.html @@ -10,16 +10,18 @@ {% translate "Activate" as button_text %} {% url 'mfa_activate_totp' as action_url %} {% #form form=form method="post" url=action_url button_text=button_text render_fields="false" %} - {{ form.secret }} + {#
#} + {{ form.secret }} + {#
#} {% #form_field field=form.code %} {% /form_field %}
-

+

{% translate "You can store this secret and use it to reinstall your authenticator app at a later time." %}