From 8ef3deafb241659d164c27aa4db027be023ecd58 Mon Sep 17 00:00:00 2001 From: sdraris Date: Fri, 12 Sep 2025 15:08:02 +0200 Subject: [PATCH] test login --- src/routes/auth/auth.service.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/routes/auth/auth.service.ts b/src/routes/auth/auth.service.ts index 0e514d4..1c27f15 100644 --- a/src/routes/auth/auth.service.ts +++ b/src/routes/auth/auth.service.ts @@ -49,8 +49,11 @@ export class AuthService { throw new UnauthorizedException('Email invalide'); } - const isMatch = await bcrypt.compare(dto.password, user.password); - if (!isMatch) { + // const isMatch = await bcrypt.compare(dto.password, user.password); + // if (!isMatch) { + // throw new UnauthorizedException('Mot de passe invalide'); + // } + if (user.password !== dto.password) { throw new UnauthorizedException('Mot de passe invalide'); }