From 37096bc83b12c838dc17ca51c207aaf8015d53c1 Mon Sep 17 00:00:00 2001 From: Manus Date: Fri, 20 Mar 2026 08:54:22 -0400 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20La=20validation=20Zod=20de=20la?= =?UTF-8?q?=20proc=C3=A9dure=20localLogin=20ne=20force=20plus=20le=20forma?= =?UTF-8?q?t=20e-mail=20=E2=80=94=20z.string().email()=20remplac=C3=A9=20p?= =?UTF-8?q?ar=20z.string().min(1)=20pour=20accepter=20tout=20identifiant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers.ts b/server/routers.ts index f1e5c0b..23e4351 100644 --- a/server/routers.ts +++ b/server/routers.ts @@ -45,7 +45,7 @@ export const appRouter = router({ }), // Connexion locale localLogin: publicProcedure - .input(z.object({ email: z.string().email(), password: z.string().min(1) })) + .input(z.object({ email: z.string().min(1), password: z.string().min(1) })) .mutation(async ({ input, ctx }) => { const result = await loginLocalUser(input.email, input.password); // Stocker le token dans un cookie