Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]techgnome[/eluser]
Not only that but you could also use it to prevent the use of either questionable/banned/or otherwise taboo usernames pretty quickly. Just a quick note of warning implementing either of those methods, don't forget to sanitize the user name before comparing it to the database. Otherwise "0'; DELETE * FROM Users;" will have a field day logging in. ![]() -tg
[eluser]TerryT[/eluser]
Just starting with Ion Auth and everything working great. Couple of questions: 1. Activate/Deactivate - these functions set a flag and I am assuming it is up to us to use as we want. Does Ion Auth use the flag anywhere in its code? 2. I see a view for editing a user and a function in the model, but nothing in the controller similar to create_user. Am I missing something? Thanks, Terrt
[eluser]drumbassrockroll[/eluser]
I've just got up and running with this library. Great stuff seems to do everything I want but I'm running into a problem. I want to make the result of the logged_in() function available to all of the views in my application, and I figured the best way to do that was to include a variable ($logged_in) in every $data array I pass though to the view. In order to do that I tried to simply extend the base controller (in the method described below). http://codeigniter.com/wiki/MY_Controlle...ontroller/ There now seems to be a problem with loading the ion_auth library (And at this stage I'm not even using any functionality of the library, just trying to load it along with my custom controller which I've implemented exactly as outlined in the above link). Code: A PHP Error was encountered It looks like it's something to do with loading the model - which I don't understand because the ion_auth model simply extends the core CI_Model. Why should it care what controller I'm using? Any help appreciated. Thanks.
[eluser]Ben Edmunds[/eluser]
drumbassrockroll, Please post your MY_Controller, the controller that you are running, and your autoload config file.
[eluser]Ben Edmunds[/eluser]
TerryT, 1. Yes, the library does use the flag. For retrieving active or inactive users. 2. The code that's there is an example, the library and model are Ion Auth and the controllers and views are just examples for you to add to and customize to suit your needs.
[eluser]drumbassrockroll[/eluser]
Thanks for the Reply. Requested files Attached
[eluser]drumbassrockroll[/eluser]
Thanks for your help! The only change I could see was that the MY_Controller Library was not specified in the autoload library array, although I'm sure I did try removing it previously and I was getting an error saying that MY_Controller was not a class... I must be mistaken, thanks again, I can get on with writing my application. :-)
[eluser]carvingCode[/eluser]
Ben - Just wanted to say your development and support of this lib is much appreciated. I've got two significant apps I'm beginning work on and have no qualms about making ion_auth a crucial part of the setup. Thanks again. Randy Brown
|
Welcome Guest, Not a member yet? Register Sign In |