add user to session. redirect to app

master
Matt Huntington 9 years ago
parent 51d4635b3b
commit ad13d75355

@ -14,7 +14,8 @@ controller.post('/', function(req, res){
username:req.body.username
}
}).then(function(foundUser){
res.send(foundUser);
req.session.currentUser = foundUser;
res.redirect('/app.html');
});
});

Loading…
Cancel
Save