始终返回未定义的值(此处为 user.password)。我真的不明白为什么
var userModel = restful.model('user');
userModel.find({email:req.params.email}, function(err, user){
if (user.length){
console.log(user); // WORKS WELL. I see whole object
console.log(user.password); // Retuns undefined
res.render(viewPath + "accountVerified", { meta: meta, success:1});
}
});