mirror of
https://github.com/pretix/pretix.git
synced 2026-08-23 12:51:59 +00:00
move setting to CustomerSSOProvider
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user