Allow to configure length of ticket secret

This commit is contained in:
Raphael Michel
2021-05-19 18:04:02 +02:00
parent 9809b88b52
commit 9773867f92
5 changed files with 30 additions and 2 deletions

View File

@@ -1083,6 +1083,7 @@ class TicketSettingsForm(SettingsForm):
'ticket_download_nonadm',
'ticket_download_pending',
'ticket_download_require_validated_email',
'ticket_secret_length',
]
ticket_secret_generator = forms.ChoiceField(
label=_("Ticket code generator"),

View File

@@ -65,6 +65,7 @@
<fieldset>
<legend>{% trans "Ticket codes" %}</legend>
{% bootstrap_field form.ticket_secret_generator layout="control" %}
{% bootstrap_field form.ticket_secret_length layout="control" %}
</fieldset>
</div>
<div class="form-group submit-group">