mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 01:32:06 +10:00
feat: send email to user on successful password reset
This commit is contained in:
committed by
Mythie
parent
84bc6eb4f3
commit
dabeead57f
@ -43,10 +43,7 @@ export const ForgotPasswordForm = ({ className }: ForgotPasswordFormProps) => {
|
||||
const { mutateAsync: forgotPassword } = trpc.profile.forgotPassword.useMutation();
|
||||
|
||||
const onFormSubmit = async ({ email }: TForgotPasswordFormSchema) => {
|
||||
// check if the email is available
|
||||
// if not, throw an error
|
||||
// if the email is available, create a password reset token and send an email
|
||||
|
||||
// TODO: Handle error with try/catch
|
||||
await forgotPassword({
|
||||
email,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user