Allow to require a verified email to download tickets

This commit is contained in:
Raphael Michel
2020-10-16 22:10:37 +02:00
parent ff74f13fce
commit fec682dddb
9 changed files with 70 additions and 10 deletions

View File

@@ -2067,7 +2067,7 @@ class OrderPosition(AbstractPosition):
user: User=None, headers: dict=None, sender: str=None, invoices: list=None,
auth=None, attach_tickets=False):
"""
Sends an email to the user that placed this order. Basically, this method does two things:
Sends an email to the attendee. Basically, this method does two things:
* Call ``pretix.base.services.mail.mail`` with useful values for the ``event``, ``locale``, ``recipient`` and
``order`` parameters.

View File

@@ -971,6 +971,19 @@ DEFAULTS = {
'data-checkbox-dependency-visual': 'on'}),
)
},
'ticket_download_require_validated_email': {
'default': 'False',
'type': bool,
'serializer_class': serializers.BooleanField,
'form_class': forms.BooleanField,
'form_kwargs': dict(
label=_("Do not issue ticket before email address is validated"),
help_text=_("If turned on, tickets will not be offered for download directly after purchase. They will "
"be attached to the payment confirmation email (if the file size is not too large), and the "
"customer will be able to download them from the page as soon as they clicked a link in "
"the email. Does not affect orders performed through other sales channels."),
)
},
'event_list_availability': {
'default': 'True',
'type': bool