Updated the register to allow the difference between a individual and corporate
This commit is contained in:
10
src/utils/email.ts
Normal file
10
src/utils/email.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import axios from "axios";
|
||||
|
||||
export const sendEmailVerification = (setIsLoading: (isLoading: boolean) => void, onSuccess: () => void, onError: (e: Error) => void) => {
|
||||
setIsLoading(true);
|
||||
axios
|
||||
.post<{ok: boolean}>("/api/reset/sendVerification", {})
|
||||
.then(onSuccess)
|
||||
.catch(onError)
|
||||
.finally(() => setIsLoading(false));
|
||||
};
|
||||
Reference in New Issue
Block a user