Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ----------------- I'm doing this: ------------
- collection.find({user: req.body.username,pass:
- crypto.createHash('md5').update(req.body.password).digest("hex")}).toArray(function(err, user_results) {
- console.log(user_results);
- console.log("in array: " + user_results.user);
- ------ which outputs: ----------
- [ { _id: 4eaeed6ad79ec46c5a3eb961,
- user: '...',
- pass: '...',
- email: '...',
- name: '...',
- phone: '...',
- address: '...' } ]
- in array: undefined
Add Comment
Please, Sign In to add comment