diff --git a/src/routes/auth/auth.service.ts b/src/routes/auth/auth.service.ts index 2ced50d..db54166 100644 --- a/src/routes/auth/auth.service.ts +++ b/src/routes/auth/auth.service.ts @@ -50,8 +50,11 @@ export class AuthService { if (!user) { throw new UnauthorizedException('Email invalide'); } + console.log("Tentative login:", dto.email, JSON.stringify(dto.password)); + console.log("Utilisateur trouvé:", user.email, user.password); const isMatch = await bcrypt.compare(dto.password, user.password); + console.log("Résultat bcrypt.compare:", isMatch); if (!isMatch) { throw new UnauthorizedException('Mot de passe invalide'); }