I want to know where and how can i see the moment a variable gives specific content and which content can have, need for return a console message with console.log('not login');
, here is my code, this first line works ok:
authenticated : function(req, res){
if (req.user) {
res.redirect('/user');
//res.send(req.user.username);
console.log('user enter');
}
else {
res.render('account/login.jade', { title: "Usuario o contraseña incorrecta, si no recuerda su clave puede restablecerla más abajo." });
console.log('not login');
res.end;
}
},
please, note that question is different from my other question Debugging nodejs with atom IDE