generated from pascalmartineau/wp-skeleton
refactor: better project structure
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
All checks were successful
Deploy WordPress and Nuxt / deploy (push) Successful in 6m3s
This commit is contained in:
8
wp-content/themes/ccat/shared/utils/login-schema.ts
Normal file
8
wp-content/themes/ccat/shared/utils/login-schema.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import * as z from "zod";
|
||||
|
||||
export const loginSchema = z.object({
|
||||
email: z.email("Courriel invalide"),
|
||||
password: z.string("Veuillez saisir votre mot de passe"),
|
||||
});
|
||||
export type LoginInput = z.input<typeof loginSchema>;
|
||||
export type LoginOutput = z.output<typeof loginSchema>;
|
||||
Reference in New Issue
Block a user