This commit is contained in:
David Arranz 2019-08-30 17:21:40 +02:00
parent 3389c52730
commit 6e372a08b6

View File

@ -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();