Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
mudeer-web
/
src
/
app
/
validators
/
Filename :
LoginValidator.tsx
back
Copy
import * as z from "zod"; export const loginValidator = z .object({ email: z .string() .min(1, { message: "Enter your email" }) .refine((val) => val.length === 0 || /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val), { message: "Must be a valid email", }), password: z .string() .min(1, { message: "Enter your password" }) }); // Create a type for the form data based on the schema export type LoginFormData = z.infer<typeof loginValidator>;