An extension of The Kohana 3 Auth module for use with Sprig User models.
This module must be added to the active modules array in your bootstrap BEFORE auth module as it overrides some classes.
- There is one intentional difference from the ORM driver for Auth module, and that is that logged_in() (and by extension get_user()) will automatically call auto_login() if no user session is found. This functionality seems the most sensible to me. If this causes problems for you please raise it as an issue or just override Auth_Sprig and change it back.
- Role checking doesn't work as expected when the user object is retrived from the session as Sprig uses Mysql Result objects. Need to investigate how to make this work correctly. (This relates to Sprig issue 40 and Kohana Database issue 2297 and is temporarily fixable by this branch in my sprig fork.