BeerWithMe/beer-finder — pull request #29 by lpappone (2014-09-22 00:42:19+00:00)
Title: set up backend part of authentication with passport

Added passport authentication system on the backend, with connection to the database to check/create users. I think this will work once we figure out how to pass the username/pw info from the front end.

We should have a logout function, but I didn't get to that yet. I think it's pretty simple, basically, from passport website:

app.get('/logout', function(req, res){
req.logout();
res.redirect('/');
});

If you guys don't want to use passport, that's fine, I kept in in a separate branch so we can just drop it.