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}))