mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
Fix verification emails
This commit is contained in:
parent
8b10daf2da
commit
e9ac2a8e71
2 changed files with 5 additions and 1 deletions
|
@ -44,6 +44,10 @@ const moduleExports = {
|
||||||
source: "/admin/:urlId",
|
source: "/admin/:urlId",
|
||||||
destination: "/poll?urlId=:urlId",
|
destination: "/poll?urlId=:urlId",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
source: "/verify/:urlId/code/:code",
|
||||||
|
destination: "/poll?urlId=:urlId&code=:code",
|
||||||
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -131,7 +131,7 @@ export default async function handler(
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
notifications: legacyPoll.creator.allowNotifications,
|
notifications: legacyPoll.creator.allowNotifications,
|
||||||
verificationCode: await nanoid(), // can't get it from api
|
verificationCode: legacyPoll.__private.verificationCode,
|
||||||
options: {
|
options: {
|
||||||
createMany: {
|
createMany: {
|
||||||
data: newOptions,
|
data: newOptions,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue