diff --git a/modules/auth/auth.controller.js b/modules/auth/auth.controller.js index f210c29..23f697c 100644 --- a/modules/auth/auth.controller.js +++ b/modules/auth/auth.controller.js @@ -332,7 +332,7 @@ async function getOrCreateUser(req, res, next) { //CHAPUZA PARA PODER DAR DE ALTA USUARIOS CON EL MISMO CORREO ELECTRONICO, PERO DISTINTO NOMBRE Y APELLIDO. if (req.user) { - if (req.user == {} ) + if (_.isEmpty(req.user)) dataUser.userResult = await userService._getOrCreateUserWEB(dataUser); else //? 'app' : 'web', //En el caso de tener ya usuario viene por APP sino viene por web