diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 17:56:25 +0000 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-02-25 17:56:25 +0000 | 
| commit | cd0f291eb1a608589fcc2c1875fa7099ed8e2c51 (patch) | |
| tree | 05b1d8b1d63baed174883cc96807051e530969a2 /public/js/modules | |
| parent | b17238eb2840553c69fc2dae168be557afbcee9c (diff) | |
feat: optionally restrict event creation to specific emails
Diffstat (limited to 'public/js/modules')
| -rw-r--r-- | public/js/modules/new.js | 12 | 
1 files changed, 12 insertions, 0 deletions
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",  | 
