From ceaf615a24a7a9cb2a4733d585042fc32cff5072 Mon Sep 17 00:00:00 2001 From: sdraris Date: Mon, 22 Sep 2025 13:07:33 +0200 Subject: [PATCH] log test login --- src/routes/auth/auth.service.ts | 3 +++ 1 file changed, 3 insertions(+) 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'); }