test login

This commit is contained in:
sdraris 2025-09-12 15:08:02 +02:00
parent d687b2344b
commit 8ef3deafb2

View File

@ -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');
}