Guest User

Untitled

a guest
May 26th, 2018
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. ----------------- I'm doing this: ------------
  2. collection.find({user: req.body.username,pass:
  3. crypto.createHash('md5').update(req.body.password).digest("hex")}).toArray(function(err, user_results) {
  4. console.log(user_results);
  5. console.log("in array: " + user_results.user);
  6.  
  7. ------ which outputs: ----------
  8. [ { _id: 4eaeed6ad79ec46c5a3eb961,
  9. user: '...',
  10. pass: '...',
  11. email: '...',
  12. name: '...',
  13. phone: '...',
  14. address: '...' } ]
  15. in array: undefined
Add Comment
Please, Sign In to add comment