SHARE
TWEET

Untitled

a guest Mar 20th, 2017 122 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. router.post('/login', function(req, res){
  2.     var loginUsername = req.body.email;
  3.     var loginPassword = req.body.password;
  4.  
  5.     var user = dbModel.getUser(loginUsername, loginPassword);
  6.  
  7.     if(user){
  8.         console.log("Bruker finnes");
  9.     }else{
  10.         console.log("Bruker finnesi kke");
  11.     }
  12.  
  13.     res.render('home', {
  14.         login:true,
  15.         loginUsername: loginUsername
  16.     });
  17. });
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