BeerWithMe/beer-finderWeb — pull request #29 by lpappone (2014-09-27 06:34:10+00:00)
Title: my whole entire day

This implements a token authentication system. When a user tries to go anywhere but the home page, a function checks their header, which includes a token and their username, to check that the decoded token matches the username. If it fails, they are rerouted to home. If it passes, they continue on to where they were trying to go. TODO: implement expires functionality on tokens - this is almost done, would just require a little refactoring.

I also took out the last part in the code (in the recommendations controller) where it was trying to send a get request to 'username + /recommendations,' because that is no longer a valid route.