Replaced the previous e-mail verification process for our own

This commit is contained in:
Tiago Ribeiro
2023-10-22 09:38:29 +01:00
parent e10aebf4c0
commit faced0b20c
7 changed files with 53 additions and 14 deletions

View File

@@ -79,6 +79,9 @@ export default function Register({code: queryCode}: {code: string}) {
setIsLoading(true);
axios
.post<{ok: boolean}>("/api/reset/sendVerification", {})
.then(() => {
toast.success("An e-mail has been sent, please make sure to check your spam folder!");
})
.catch((e) => {
console.log(e);
toast.error("Something went wrong, please logout and re-login.", {toastId: "send-verify-error"});