diff --git a/servicio-usuarios/src/users/users.service.ts b/servicio-usuarios/src/users/users.service.ts index 0cd70023..b2c42794 100644 --- a/servicio-usuarios/src/users/users.service.ts +++ b/servicio-usuarios/src/users/users.service.ts @@ -99,10 +99,13 @@ export class UsersService { reject(err); } else { let passwordEncriptada = Md5.init(password); + if (res.length > 0) { if (res[0].password == passwordEncriptada) { resolve(res[0]); } else { resolve(null); + }}else{ + resolve(null); } } });