Tests connexion

This commit is contained in:
2024-08-01 17:55:50 +02:00
parent edf23bdbaa
commit fb58a24170
15 changed files with 222 additions and 135 deletions

8
schemas/login.ts Normal file
View File

@@ -0,0 +1,8 @@
import { z } from "zod";
export const schema = z.object({
username: z.string({ required_error: "Nom d'utilisateur obligatoire" }),
password: z.string({ required_error: "Mot de passe obligatoire" }),
});
export type Login = z.infer<typeof schema>;