From aaa7d6deb37072f111838299dc69ba819e558212 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 16 Oct 2023 18:56:42 +0100 Subject: [PATCH] Changed to platform --- src/email/templates/main.handlebars | 5 +++-- src/pages/action.tsx | 2 +- src/pages/api/reset/sendVerification.ts | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/email/templates/main.handlebars b/src/email/templates/main.handlebars index 7e6eb995..29f969db 100644 --- a/src/email/templates/main.handlebars +++ b/src/email/templates/main.handlebars @@ -11,14 +11,15 @@
Hello future {{type}} of EnCoach,
- You have been invited to register at EnCoach to + You have been invited to register at EnCoach + to become a {{type}}!
Please use the following code when registering:


- + {{code}} diff --git a/src/pages/action.tsx b/src/pages/action.tsx index c7651958..aa31e840 100644 --- a/src/pages/action.tsx +++ b/src/pages/action.tsx @@ -48,7 +48,7 @@ export default function Reset({code, mode, apiKey, continueUrl}: {code: string; if (mode === "signIn") { axios .post<{ok: boolean}>("/api/reset/verify", { - email: continueUrl?.replace("https://app.encoach.com/", ""), + email: continueUrl?.replace("https://platform.encoach.com/", ""), }) .then((response) => { if (response.data.ok) { diff --git a/src/pages/api/reset/sendVerification.ts b/src/pages/api/reset/sendVerification.ts index ed9561b3..e04841a7 100644 --- a/src/pages/api/reset/sendVerification.ts +++ b/src/pages/api/reset/sendVerification.ts @@ -12,7 +12,7 @@ export default withIronSessionApiRoute(sendVerification, sessionOptions); async function sendVerification(req: NextApiRequest, res: NextApiResponse) { if (req.session.user) { sendSignInLinkToEmail(auth, req.session.user.email, { - url: `https://app.encoach.com/${req.session.user.email}`, + url: `https://platform.encoach.com/${req.session.user.email}`, handleCodeInApp: true, }) .then(() => res.status(200).json({ok: true}))