benvanstaveren/Mojolicious-Plugin-Authentication — pull request #4 by ewildgoose (2012-02-27 19:57:50+00:00)
Title: Some updates to Mojolicious::Plugin::Authentication

Hi, can you have a look at the latest 4 commits in my linked repo and see what you think? The main changes are driven based on the fairly mature rails auth plugins:

- Introduce a current_user method - almost everything can then be defined based on that
- Rename the user stash and user method to current_user... this is controversial and breaks existing code...
- Rename user_exists to is_user_authenticated to better match what it actually does. Can't think of a good new name for signature_exists though...
- lazy is renamed autoload_user to better represent what it does. Code simplified as a result.

Thanks

Ed W