From 6e372a08b69d6261f2e845381e3cbcaee6d91a4a Mon Sep 17 00:00:00 2001 From: david Date: Fri, 30 Aug 2019 17:21:40 +0200 Subject: [PATCH] a --- modules/auth/auth.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();