feat: add reset functionality

This commit is contained in:
Ephraim Atta-Duncan
2023-09-18 14:03:33 +00:00
committed by Mythie
parent 9ef50f356e
commit 84bc6eb4f3
7 changed files with 163 additions and 38 deletions

View File

@ -30,7 +30,7 @@ export const sendForgotPassword = async ({ userId }: SendForgotPasswordOptions)
const token = user.PasswordResetToken[0].token;
const assetBaseUrl = process.env.NEXT_PUBLIC_SITE_URL || 'http://localhost:3000';
const resetPasswordLink = `${process.env.NEXT_PUBLIC_SITE_URL}/reset/${token}`;
const resetPasswordLink = `${process.env.NEXT_PUBLIC_SITE_URL}/reset-password/${token}`;
const template = createElement(ForgotPasswordTemplate, {
assetBaseUrl,