mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Allow to require a verified email to download tickets
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user