jimguys/poemlab — pull request #38 by drueck (2013-10-05 05:37:35+00:00)
Title: Add middleware to redirect based on logged in or not and route

Addresses #22.

If there is a user logged in and someone tries to access `/`, `login/` or `register/` it will redirect to the user's poems list. Likewise if there is no logged in user and someone tries to access a page that requires a user, it will redirect to `/`.