Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
src
/
lib
/
validators
/
Filename :
passwordValidator2.ts
back
Copy
import * as z from 'zod'; export const passwordValidator2 = z.object({ newPassword: z .string() .min(6, { message: "Password must be at least 6 characters" }), confirmPassword: z .string() .min(1, { message: "Confirm Password is required" }) }).refine((data) => data.newPassword === data.confirmPassword, { path: ["confirmPassword"], // Indicates where the error message should be attached in case of failure message: "Passwords don't match", // The error message for the refinement });