Change password in database to new reset password

This commit is contained in:
Ephraim Atta-Duncan
2023-06-05 14:36:20 +00:00
parent 8dc9c9d72d
commit 6e2b05f835
5 changed files with 71 additions and 25 deletions

View File

@@ -7,10 +7,7 @@ export const sendResetPassword = async (user: User, token: string) => {
await sendMail(
user.email,
"Forgot password?",
resetPasswordTemplate(
`${NEXT_PUBLIC_WEBAPP_URL}/api/auth/reset/${token}`,
"Reset Your Password"
)
resetPasswordTemplate(`${NEXT_PUBLIC_WEBAPP_URL}/auth/reset/${token}`, "Reset Your Password")
).catch((err) => {
throw err;
});