mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Vouchers: Don't allow to generate more than 100k random codes at once
This commit is contained in:
@@ -123,6 +123,8 @@ var form_handlers = function (el) {
|
||||
|
||||
// Vouchers
|
||||
el.find("#voucher-bulk-codes-generate").click(function () {
|
||||
if (!$("#voucher-bulk-codes-num").get(0).reportValidity())
|
||||
return;
|
||||
var num = $("#voucher-bulk-codes-num").val();
|
||||
var prefix = $('#voucher-bulk-codes-prefix').val();
|
||||
if (num != "") {
|
||||
|
||||
Reference in New Issue
Block a user