Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

Fix verification emails

Luke Vellae9ac2a8e71dd
diff --git a/next.config.js b/next.config.js
index 9d5c63957..741ce73bb 100644
--- a/next.config.js
+++ b/next.config.js
@@ -44,6 +44,10 @@ const moduleExports = {
source: "/admin/:urlId",
destination: "/poll?urlId=:urlId",
},
+ {
+ source: "/verify/:urlId/code/:code",
+ destination: "/poll?urlId=:urlId&code=:code",
+ },
];
},
};
diff --git a/pages/api/legacy/[urlId].ts b/pages/api/legacy/[urlId].ts
index 21f3bdae1..ee7327e5b 100644
--- a/pages/api/legacy/[urlId].ts
+++ b/pages/api/legacy/[urlId].ts
@@ -131,7 +131,7 @@ export default async function handler(
},
},
notifications: legacyPoll.creator.allowNotifications,
- verificationCode: await nanoid(), // can't get it from api
+ verificationCode: legacyPoll.__private.verificationCode,
options: {
createMany: {
data: newOptions,