Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.post('/partner', function(req, res){
- var email = req.body.userEmail;
- var password = req.body.userPass;
- console.log(email);
- console.log(password);
- var adminEmail = 'admin';
- var adminPassword = 'admin';
- if (email == adminEmail && password == adminPassword){
- console.log(email);
- var user = {userEmail: email, userPass: password};
- console.log(user);
- res.json(user);
- }
- else {
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement