.
This commit is contained in:
parent
6321df3f85
commit
d0ad1bbad2
@ -328,7 +328,7 @@ async function getOrCreateUser(req, res, next) {
|
|||||||
//creamos o recuperamos el usuario teniendo en cuenta que pude venir por APP o WEB
|
//creamos o recuperamos el usuario teniendo en cuenta que pude venir por APP o WEB
|
||||||
//si viene por web se tendra en cuenta el email y si viene por APP el phone para buscar
|
//si viene por web se tendra en cuenta el email y si viene por APP el phone para buscar
|
||||||
try {
|
try {
|
||||||
console.log('CHAPUZAAAAAAAAAA>>>');
|
console.log('CHAPUZAAAAAAAAAA>>>', req.user);
|
||||||
//CHAPUZA PARA PODER DAR DE ALTA USUARIOS CON EL MISMO CORREO ELECTRONICO, PERO DISTINTO NOMBRE Y APELLIDO.
|
//CHAPUZA PARA PODER DAR DE ALTA USUARIOS CON EL MISMO CORREO ELECTRONICO, PERO DISTINTO NOMBRE Y APELLIDO.
|
||||||
if (req.user)
|
if (req.user)
|
||||||
//? 'app' : 'web', //En el caso de tener ya usuario viene por APP sino viene por web
|
//? 'app' : 'web', //En el caso de tener ya usuario viene por APP sino viene por web
|
||||||
|
|||||||
@ -83,7 +83,7 @@ const extraMethods = {
|
|||||||
_getOrCreateUserWEB: async (dataUser) => {
|
_getOrCreateUserWEB: async (dataUser) => {
|
||||||
let result = null;
|
let result = null;
|
||||||
|
|
||||||
console.log ("dataUser>>>>> ", dataUser);
|
console.log ("_getOrCreateUserWEB>>>>> ");
|
||||||
|
|
||||||
if (dataUser.userResult) {
|
if (dataUser.userResult) {
|
||||||
result = { user: dataUser.userResult, isCreated: false };
|
result = { user: dataUser.userResult, isCreated: false };
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user