diff --git a/src/openforms/conf/dev.py b/src/openforms/conf/dev.py index 33a0f6d5ea..f5b26113df 100644 --- a/src/openforms/conf/dev.py +++ b/src/openforms/conf/dev.py @@ -154,7 +154,7 @@ CSP_EXCLUDE_URL_PREFIXES += ("/dev/",) # None of the authentication backends require two-factor authentication. -if config("DISABLE_2FA", default=True): +if config("DISABLE_2FA", default=True): # pragma: no cover MAYKIN_2FA_ALLOW_MFA_BYPASS_BACKENDS = AUTHENTICATION_BACKENDS # THOU SHALT NOT USE NAIVE DATETIMES diff --git a/src/openforms/utils/django_two_factor_auth.py b/src/openforms/utils/django_two_factor_auth.py index 701d87163c..fa47be8fce 100644 --- a/src/openforms/utils/django_two_factor_auth.py +++ b/src/openforms/utils/django_two_factor_auth.py @@ -5,10 +5,5 @@ def should_display_dropdown_menu(request) -> bool: default = default_should_display_dropdown_menu(request) - - # never display the dropdown in two-factor admin views - if request.resolver_match.view_name.startswith("maykin_2fa:"): - return False - # do not display the dropdown until the user is verified. return default and request.user.is_verified()