From cd0f291eb1a608589fcc2c1875fa7099ed8e2c51 Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Sun, 25 Feb 2024 17:56:25 +0000 Subject: feat: optionally restrict event creation to specific emails --- public/js/modules/new.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'public/js') diff --git a/public/js/modules/new.js b/public/js/modules/new.js index 2d880f8..a018087 100644 --- a/public/js/modules/new.js +++ b/public/js/modules/new.js @@ -119,6 +119,10 @@ function newEventForm() { "imageUpload", this.$refs.eventImageUpload.files[0], ); + formData.append( + "magicLinkToken", + this.$refs.magicLinkToken.value, + ); try { const response = await fetch("/event", { method: "POST", @@ -170,6 +174,10 @@ function newEventGroupForm() { "imageUpload", this.$refs.eventGroupImageUpload.files[0], ); + formData.append( + "magicLinkToken", + this.$refs.magicLinkToken.value, + ); try { const response = await fetch("/group", { method: "POST", @@ -218,6 +226,10 @@ function importEventForm() { "icsImportControl", this.$refs.icsImportControl.files[0], ); + formData.append( + "magicLinkToken", + this.$refs.magicLinkToken.value, + ); try { const response = await fetch("/import/event", { method: "POST", -- cgit v1.2.3