feat: basic email validation

This commit is contained in:
amhsirak
2025-07-12 01:36:03 +05:30
parent 8e3a22c675
commit 640693aeef

View File

@@ -42,6 +42,12 @@ const Login = () => {
const submitForm = async (e: any) => {
e.preventDefault();
if (!email.includes("@")) {
notify("error", "Please enter a valid email.");
return;
}
setLoading(true);
try {
const { data } = await axios.post(