Overview
The Authentication Library started out as a small, easy to use Authentication library for the CodeIgniter framework. Over time the library has grown and has now essentially become a platform for applications with it's easy to use interface and it's strong administration panel. The Authentication Library has established a strong brand within the CodeIgniter community and is constantly being updated and improved. The Library is mostly coded by Adam Griffiths, with some small changes being added in from other CodeIgniter developers.
The Authentication Library was built with simplicity and security in mind, so simple in fact that to use the library you essentially only write one extra character in your controller files.
Function reference
| Function | Passable parameters | Description |
|---|---|---|
| restrict | Name of user group, i.e. 'admin' and boolean | When used, will restrict access to a controller or function to only those specified. |
| login | URI to redirect user to on successful login. | Displays a view for the login and processes it. Will log the user in if the details are correct. |
| logged_in | NONE | Checks is a session variable is set for the user. Will return TRUE or FALSE based on success or failure. |
| logout | NONE | Destroys all session/cookie data for the user. |
| register | NONE | Displays a view for the registration and processes it. The user will be logged in upon a successful registration. |