From c912e7bb5fc2d480f594aaa0eb69107629ff44f7 Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Mon, 16 Mar 2026 15:59:19 -0300 Subject: [PATCH] remove TOTP selection rule requiring combination with Local Password or OIDC authentication --- app_gateway/forms.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/app_gateway/forms.py b/app_gateway/forms.py index 428015d..977d0ba 100644 --- a/app_gateway/forms.py +++ b/app_gateway/forms.py @@ -201,10 +201,6 @@ class AccessPolicyForm(forms.ModelForm): if local_password_count > 0 and oidc_count > 0: self.add_error('methods', _("Cannot select both Local Password and OpenID Connect (OIDC) authentication methods.")) - # Rule: TOTP cannot be selected alone — must be combined with local_password or oidc - if totp_count > 0 and local_password_count == 0 and oidc_count == 0: - self.add_error('methods', _("TOTP must be combined with a Local Password or OpenID Connect authentication method.")) - # Rule: If local password is selected, at least one user group must be selected if has_local_password and not has_groups: self.add_error('groups', _("At least one user group must be selected when using Local Password authentication."))