feat: send forgot password email

This commit is contained in:
Ephraim Atta-Duncan
2023-09-18 12:14:55 +00:00
parent 1237944b71
commit 29bd4cb9c3
4 changed files with 60 additions and 74 deletions

View File

@ -51,8 +51,6 @@ export const ForgotPasswordForm = ({ className }: ForgotPasswordFormProps) => {
email,
});
reset();
toast({
title: 'Password updated',
description: 'Your password has been updated successfully.',
@ -63,6 +61,7 @@ export const ForgotPasswordForm = ({ className }: ForgotPasswordFormProps) => {
setTimeout(resolve, 2000);
});
reset();
router.push('/check-email');
};