a
This commit is contained in:
parent
3389c52730
commit
6e372a08b6
@ -63,7 +63,7 @@ async function loginWithPhone(req, res, next) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Comprobamos si el usuario ya existe en nuestro sistema
|
//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) {
|
if (_user) {
|
||||||
_user = _user.toJSON();
|
_user = _user.toJSON();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user