Hello,
The password validation in src/utils/validation.ts defines that it must contain one uppercase letter, be alphanumeric, and be at least 8 characters long. Could you update the Swagger in src/controllers/authController.ts to match this validation?
* password:
* type: string
* minLength: 6
* description: Mot de passe (minimum 6 caractères)
* example: "password123"
Also, it appears that updatedAt is missing from the selection:
// Créer le nouvel utilisateur
const newUser = await prisma.user.create({
data: {
email: email.toLowerCase(),
password: hashedPassword,
name: name?.trim() || null,
},
select: {
id: true,
email: true,
name: true,
createdAt: true,
},
});
Thanks for the project, it's quite a fun one!
Hello,
The password validation in src/utils/validation.ts defines that it must contain one uppercase letter, be alphanumeric, and be at least 8 characters long. Could you update the Swagger in src/controllers/authController.ts to match this validation?
Also, it appears that updatedAt is missing from the selection:
Thanks for the project, it's quite a fun one!