Added routes

This commit is contained in:
Jose Selesan
2026-09-25 10:05:56 -03:00
parent 336e1af523
commit 94c353f4f2
100 changed files with 6126 additions and 183 deletions

View File

@@ -0,0 +1,13 @@
import { z } from 'zod'
export const changePasswordSchema = z
.object({
currentPassword: z.string().min(1, 'Ingresá tu contraseña actual'),
newPassword: z.string().min(8, 'La nueva contraseña debe tener al menos 8 caracteres'),
})
.refine((v) => v.currentPassword !== v.newPassword, {
message: 'La nueva contraseña debe ser distinta',
path: ['newPassword'],
})
export type ChangePasswordValues = z.infer<typeof changePasswordSchema>