From e2567e128eff4275b1cdfc3a0547af3dcf3c4e22 Mon Sep 17 00:00:00 2001 From: Tiago Ribeiro Date: Mon, 16 Oct 2023 18:55:55 +0100 Subject: [PATCH] Changed from encoach.com to app.encoach.com --- src/email/templates/main.handlebars | 4 ++-- src/pages/action.tsx | 2 +- src/pages/api/reset/sendVerification.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/email/templates/main.handlebars b/src/email/templates/main.handlebars index 4a7bb4d6..7e6eb995 100644 --- a/src/email/templates/main.handlebars +++ b/src/email/templates/main.handlebars @@ -11,14 +11,14 @@
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 a0bacfd5..c7651958 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://encoach.com/", ""), + email: continueUrl?.replace("https://app.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 98a8eb8d..ed9561b3 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://encoach.com/${req.session.user.email}`, + url: `https://app.encoach.com/${req.session.user.email}`, handleCodeInApp: true, }) .then(() => res.status(200).json({ok: true}))