Changed to platform
This commit is contained in:
@@ -11,14 +11,15 @@
|
|||||||
<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://app.encoach.com/register?code={{code}}">EnCoach</a> to
|
<span>You have been invited to register at <a href="https://platform.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://app.encoach.com/register?code={{code}}"></a>
|
<a href="https://platform.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>
|
||||||
|
|||||||
@@ -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://app.encoach.com/", ""),
|
email: continueUrl?.replace("https://platform.encoach.com/", ""),
|
||||||
})
|
})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (response.data.ok) {
|
if (response.data.ok) {
|
||||||
|
|||||||
@@ -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://app.encoach.com/${req.session.user.email}`,
|
url: `https://platform.encoach.com/${req.session.user.email}`,
|
||||||
handleCodeInApp: true,
|
handleCodeInApp: true,
|
||||||
})
|
})
|
||||||
.then(() => res.status(200).json({ok: true}))
|
.then(() => res.status(200).json({ok: true}))
|
||||||
|
|||||||
Reference in New Issue
Block a user