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