Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. app.post('/partner', function(req, res){
  2.         var email = req.body.userEmail;
  3.         var password = req.body.userPass;
  4.  
  5.         console.log(email);
  6.         console.log(password);
  7.  
  8.         var adminEmail = 'admin';
  9.         var adminPassword = 'admin';
  10.  
  11.         if (email == adminEmail && password == adminPassword){
  12.             console.log(email);
  13.             var user = {userEmail: email, userPass: password};
  14.             console.log(user);
  15.             res.json(user);
  16.         }
  17.         else {
  18.  
  19.         }
  20.  
  21.     });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement