Skip to content

Scheduling infrastructure for absolutely everyone.

fix: passwordResetLink uses correct page

femyeda2c29368337c3
diff --git a/pages/api/auth/forgot-password.ts b/pages/api/auth/forgot-password.ts
index eb5ceb0d0bf..e856ed42cff 100644
--- a/pages/api/auth/forgot-password.ts
+++ b/pages/api/auth/forgot-password.ts
@@ -55,7 +55,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
passwordRequest = createdResetPasswordRequest;
}
- const passwordResetLink = `${process.env.BASE_URL}/auth/reset-password/${passwordRequest.id}`;
+ const passwordResetLink = `${process.env.BASE_URL}/auth/forgot-password/${passwordRequest.id}`;
const { subject, message } = buildForgotPasswordMessage({
user: {
name: maybeUser.name,