daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Jun 21st, 2018 42 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. router.post('/user/login', function (req, res) {
  2.     console.log(req.body);
  3.     var item = req.body;
  4.    
  5.     var user = _.findWhere(_users, {
  6.         username: item.username,
  7.         password: item.password
  8.     })
  9.  
  10.     res.json(user ? user : {});
  11. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top