![]() |
An authentication model i've created - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: An authentication model i've created (/showthread.php?tid=29500) |
An authentication model i've created - El Forum - 04-12-2010 [eluser]Unknown[/eluser] This model class will handle user authentication without modifying CI classes one single php file. hope it will help, though i would love to hear some feedback since im gonna use it in my project. So let me know what you think. var $loginPage - the login page for redirection. Authenticate - will login the user with remember me support. Validate - will verify the user is authenticated when accessing a members area LogOut - will destroy the user session and logout. LocalAuth - this is a private method, the only method you will have to modify for a real login from your db. Enjoy. Rotem |