forked from Ynov/ptitspas-ynov-back
test login
This commit is contained in:
parent
d687b2344b
commit
8ef3deafb2
@ -49,8 +49,11 @@ export class AuthService {
|
|||||||
throw new UnauthorizedException('Email invalide');
|
throw new UnauthorizedException('Email invalide');
|
||||||
}
|
}
|
||||||
|
|
||||||
const isMatch = await bcrypt.compare(dto.password, user.password);
|
// const isMatch = await bcrypt.compare(dto.password, user.password);
|
||||||
if (!isMatch) {
|
// if (!isMatch) {
|
||||||
|
// throw new UnauthorizedException('Mot de passe invalide');
|
||||||
|
// }
|
||||||
|
if (user.password !== dto.password) {
|
||||||
throw new UnauthorizedException('Mot de passe invalide');
|
throw new UnauthorizedException('Mot de passe invalide');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user