![]() |
ErkanaAuth 2.0a Release - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: ErkanaAuth 2.0a Release (/showthread.php?tid=27238) |
ErkanaAuth 2.0a Release - El Forum - 02-04-2010 [eluser]Michael Wales[/eluser] In November 07 I released the first version of ErkanaAuth. It saw a pretty decent amount of success due to it ease of use and how it still left you in control of much of the authentication process. Alas, that code has been lost in the sands of time for a while now. I've been working on a pretty large personal project lately and decided to abstract out the authentication into a library of its own. This is very early alpha but I thought I would share with everyone and start gathering opinions and feature requests. Check it out at http://www.michaelwales.com/2010/02/erkanaauth-version-2-0a/ and let me know what you think. ErkanaAuth 2.0a Release - El Forum - 02-06-2010 [eluser]phpserver[/eluser] Really good features,i like it.Here is what i was thinking.Is it possible to protect the whole controller instead of only one function?. ErkanaAuth 2.0a Release - El Forum - 02-06-2010 [eluser]SitesByJoe[/eluser] I look forward to digging through this as I use your older ErkanaAuth library now!~ ErkanaAuth 2.0a Release - El Forum - 04-27-2010 [eluser]vecima[/eluser] I'm not sure what direction Michael is planning on taking ErkanaAuth 2.0 in, so this may not fit with his plans, but I figured I'd share anyway. -I implemented a get_identifier method to return the email or username (whichever you used to set it up) -I implemented a change_password method to allow a user to change their password. notes: -The change_password method uses the get_identifier method, so if you only want the change_password method, be aware that you'll need to replace the get_identifier calls. -I tried to keep the ErkanaAuth code style so as not to confuse anyone. -You should be able to put these methods into the ErkanaAuth class, but I didn't test it in that fashion. I have a library called Auth_wrapper that loads ErkanaAuth, and I put these methods in my wrapper. -If you use a wrapper as I did, you may need to make a change in the ErkanaAuth library. The change is in the validate_login method near the top. After the if check for the Account class: Code: if (!class_exists('Account')) { right after that if check, add another one for the CI_Session class: Code: if (!class_exists('CI_Session')) { The following is the code for the methods. get_identifier Code: // get_identifier() change_password Code: // change_password() hope this helps someone! |