License
Codeigniter Auth is released under GPLv2 license.
Description
Codeigniter PHP framework library class for dealing with user authentication.
Features
- Passwords stored as SHA-256 of password + separate hash key = password hash.
- Current logged in status stored in session as SHA-256 of id + email + password hash + separate hash key = session hash. Ability to validate session by checking session hash on each page load.
- Remember me cookie is using cookie tokens stored inside database. Remember me cookie is being regenerated on each remember me cookie login.
- Registration supports both direct and activate token based registration.
Instructions
Please note that following steps assume that you have correctly configured Codeigniter on your server.
- Place auth.php inside application/config.
- Place Auth.php inside application/libraries.
- Create installation controller that calls install() method provided by this library to create all of the required database tables.
- Create your login and register controllers.
- Adjust application/config/session.php with your $config['auth_login_controller'], $config['auth_session_hash_key'], $config['auth_password_hash_key'], $config['auth_cookie_hash_key'] and $config['auth_activate_hash_key'].
Download
Codeigniter Auth source code is hosted by GitHub from where you can download current copy of its master branch:
You can also fork or contribute to Codeigniter Auth by visiting its official GitHub repository page: