From de518b4d2510980750d9c54eda3b0e0fe8d73ecd Mon Sep 17 00:00:00 2001 From: Raphael Kabo Date: Sun, 21 Apr 2024 22:44:22 +0100 Subject: feat: unattend events from RSVP email --- src/routes.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/routes.js') 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", }, -- cgit v1.2.3