move setting to CustomerSSOProvider

This commit is contained in:
Richard Schreiber
2026-07-01 10:32:05 +02:00
parent c36bf71403
commit ed432fefad
6 changed files with 12 additions and 19 deletions
+7
View File
@@ -73,6 +73,13 @@ class CustomerSSOProvider(LoggedModel):
null=False, blank=False,
choices=METHODS,
)
allow_convert_to_sso = models.BooleanField(
default=False,
verbose_name=_("Convert existing customers to single-sign-on accounts on login"),
help_text=_(
"If enabled, when an existing customer registered with email and password tries to login through this SSO provider, pretix changes the account to single-sign-on. Otherwise pretix does not allow to log in."
),
),
configuration = models.JSONField()
def allow_delete(self):