diff --git a/attached_assets/image_1754936873392.png b/attached_assets/image_1754936873392.png new file mode 100644 index 0000000..99b026c Binary files /dev/null and b/attached_assets/image_1754936873392.png differ diff --git a/client/src/pages/Users.tsx b/client/src/pages/Users.tsx index 9697557..dc30a90 100644 --- a/client/src/pages/Users.tsx +++ b/client/src/pages/Users.tsx @@ -917,14 +917,13 @@ export default function UsersPage() {
- + setEditForm({...editForm, email: e.target.value})} - placeholder="email@exemple.com" - required + placeholder="email@exemple.com (optionnel)" />
diff --git a/server/routes.ts b/server/routes.ts index 7c2ebe9..f03f7ce 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -937,7 +937,7 @@ export async function registerRoutes(app: Express): Promise { role: z.enum(['admin', 'manager', 'employee']).optional(), firstName: z.string().optional(), lastName: z.string().optional(), - email: z.string().email().optional(), + email: z.union([z.string().email(), z.literal("")]).optional(), password: z.string().optional(), });