useForgotPassword
This hook allows you to send a reset password email to a customer.
props | Type | Description | Example |
---|---|---|---|
control | Object | This is the react-hook-form control object | |
handleSubmit | Function | handle submit | |
formState | Object | This is the react-hook-form formState object | |
submit | Function | submit forgot password | |
isLoading | Boolean | loading state | false |
isSuccess | Boolean | success state | false |
Usage
import { useForgotPassword } from '@appmaker-xyz/core';
const {
control,
handleSubmit,
formState,
submit,
isLoading,
isSuccess,
} = useForgotPassword();