add 'Global TOTP Before Authentication' option and update form layouts

This commit is contained in:
Eduardo Silva
2026-03-14 08:52:31 -03:00
parent 72e3e2e1ca
commit 06426b3852
4 changed files with 55 additions and 30 deletions

View File

@@ -15,6 +15,7 @@ class AuthMethod(models.Model):
# TOTP-specific fields
totp_secret = models.CharField(max_length=255, blank=True, help_text=_("Shared/global TOTP secret key"))
totp_before_auth = models.BooleanField(default=False)
# OIDC-specific fields
oidc_provider = models.CharField(max_length=64, blank=True)