@proofkit/cli
Version:
Create web application with the ProofKit stack
20 lines (17 loc) • 541 B
text/typescript
import { z } from "zod/v4";
export const updateEmailSchema = z.object({
email: z.string().email(),
});
export const updatePasswordSchema = z
.object({
currentPassword: z.string(),
newPassword: z
.string()
.min(8, { message: "Password must be at least 8 characters long" })
.max(255, { message: "Password is too long" }),
confirmNewPassword: z.string(),
})
.refine((data) => data.newPassword === data.confirmNewPassword, {
path: ["confirmNewPassword"],
message: "Passwords do not match",
});