summaryrefslogtreecommitdiff
path: root/src/routes.js
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-04-21 22:44:22 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2024-05-26 15:55:56 +0100
commitde518b4d2510980750d9c54eda3b0e0fe8d73ecd (patch)
tree69c3fa5464d6f2657bef909c4f9bd057fee3dedb /src/routes.js
parent6f0721686aea7647554ad0f3ee4f6099bff4ef58 (diff)
feat: unattend events from RSVP email
Diffstat (limited to 'src/routes.js')
-rwxr-xr-xsrc/routes.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/routes.js b/src/routes.js
index 3d6902f..2cbec4f 100755
--- a/src/routes.js
+++ b/src/routes.js
@@ -23,6 +23,7 @@ import Event from "./models/Event.js";
import EventGroup from "./models/EventGroup.js";
import path from "path";
import { activityPubContentType } from "./lib/activitypub.js";
+import { hashString } from "./util/generator.js";
const config = getConfig();
const domain = config.general.domain;
@@ -713,6 +714,7 @@ router.post("/attendevent/:eventID", async (req, res) => {
siteLogo,
domain,
removalPassword: req.body.removalPassword,
+ removalPasswordHash: hashString(req.body.removalPassword),
cache: true,
layout: "email.handlebars",
},