Changed to platform
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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}))
|
||||
|
||||
Reference in New Issue
Block a user