Changed from encoach.com to app.encoach.com

This commit is contained in:
Tiago Ribeiro
2023-10-16 18:55:55 +01:00
parent 5c11087cec
commit e2567e128e
3 changed files with 4 additions and 4 deletions

View File

@@ -11,14 +11,14 @@
<img src="/logo_title.png" class="w-48 h-48 self-center" /> <img src="/logo_title.png" class="w-48 h-48 self-center" />
<div> <div>
<span>Hello future {{type}} of <b>EnCoach</b>,</span><br /> <span>Hello future {{type}} of <b>EnCoach</b>,</span><br />
<span>You have been invited to register at <a href="https://encoach.com/register?code={{code}}">EnCoach</a> to <span>You have been invited to register at <a href="https://app.encoach.com/register?code={{code}}">EnCoach</a> to
become a become a
{{type}}!</span><br /> {{type}}!</span><br />
<span>Please use the following code when registering:</span> <span>Please use the following code when registering:</span>
</div> </div>
<br /> <br />
<br /> <br />
<a href="https://encoach.com/register?code={{code}}"></a> <a href="https://app.encoach.com/register?code={{code}}"></a>
<span class="self-center p-4 px-12 text-lg text-[#]" style="background-color: #D5D9F0; color: #353338"> <span class="self-center p-4 px-12 text-lg text-[#]" style="background-color: #D5D9F0; color: #353338">
<b>{{code}}</b> <b>{{code}}</b>
</span> </span>

View File

@@ -48,7 +48,7 @@ export default function Reset({code, mode, apiKey, continueUrl}: {code: string;
if (mode === "signIn") { if (mode === "signIn") {
axios axios
.post<{ok: boolean}>("/api/reset/verify", { .post<{ok: boolean}>("/api/reset/verify", {
email: continueUrl?.replace("https://encoach.com/", ""), email: continueUrl?.replace("https://app.encoach.com/", ""),
}) })
.then((response) => { .then((response) => {
if (response.data.ok) { if (response.data.ok) {

View File

@@ -12,7 +12,7 @@ export default withIronSessionApiRoute(sendVerification, sessionOptions);
async function sendVerification(req: NextApiRequest, res: NextApiResponse) { async function sendVerification(req: NextApiRequest, res: NextApiResponse) {
if (req.session.user) { if (req.session.user) {
sendSignInLinkToEmail(auth, req.session.user.email, { 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, handleCodeInApp: true,
}) })
.then(() => res.status(200).json({ok: true})) .then(() => res.status(200).json({ok: true}))