diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index baa1735..b83d907 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -63,7 +63,7 @@ async function loginWithPhone(req, res, next) { }; //Comprobamos si el usuario ya existe en nuestro sistema - let _user = await authService.extraMethods.findUser(findOptions); + let _user = await authService.extraMethods.findUserByPhone(req.user.phoneNumber); if (_user) { _user = _user.toJSON();