Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]rip_pit[/eluser]
I never used mssql you should submit an issue ticket on the github project page (https://github.com/benedmunds/CodeIgnite...uth/issues) including the pastebin url but i'm not sure if it's related to CI itself or to Ion_auth Sorry i will be a little help for you problem :'(
[eluser]sevengraff[/eluser]
Yeah whats the story with how Ion_Auth stores IP addresses? I was surprised that it seem to store them as raw number instead of a string that I can more easily search/deal with. Also, does Ion_Auth generate the documentation at http://benedmunds.com/ion_auth/ with a tool or is it just typed out as a HTML document? I'd like to work on the documentation but I'm not sure if I should embed it in the code or edit the docs directly.
[eluser]rei[/eluser]
Hi, does anyone here got a pre setup HMVC modular extensions + Ion Auth library CodeIgniter. Or does anyone here got an idea how would I integrate Ion Auth with HMVC modular extension.
[eluser]rip_pit[/eluser]
[quote author="sevengraff" date="1343413326"]Yeah whats the story with how Ion_Auth stores IP addresses? I was surprised that it seem to store them as raw number instead of a string that I can more easily search/deal with. Also, does Ion_Auth generate the documentation at http://benedmunds.com/ion_auth/ with a tool or is it just typed out as a HTML document? I'd like to work on the documentation but I'm not sure if I should embed it in the code or edit the docs directly. [/quote] i don't know how IA doc is made but you could look at http://manual.phpdoc.org/HTMLframesConverter/default/ to build docs based on your code
[eluser]RockyS[/eluser]
First I must say thank you for this awesome module! Secondly I have a question, is there any way I can protect whole define page (ex: url/index.php/admin) without writing if (!$this->ion_auth->logged_in()) { redirect('user/login'); } elseif (!$this->ion_auth->is_admin()) { //redirect them to the home page because they must be an administrator to view this redirect($this->config->item('base_url'), 'refresh'); } in every controller that loads views?
[eluser]Mirge[/eluser]
This should help: http://philsturgeon.co.uk/blog/2010/02/C...ing-it-DRY
[eluser]sevengraff[/eluser]
How do I change the groups that a registered user is in? update() just takes a $data array but only updates the user table, not the users_groups table. Also, there is a get_users_groups() but no corresponding set_users_groups(). The docs list both update_user() and update() but I only see an implementation for update(). edit Oh there is an undocument function, add_to_group( $groupid, $userid ) that will do it. Super cool, just found it in the model, gonna play around with it.
[eluser]RockyS[/eluser]
[quote author="Mirge" date="1344097067"]This should help: http://philsturgeon.co.uk/blog/2010/02/C...ing-it-DRY[/quote] I tried with this one http://jondavidjohn.com/blog/2011/01/sca...r-ion_auth but it's not working anymore and github contains only basic stuff without extended controller etc. Also tutorial is a little mess, it contains Admin_Controller where it's saying "create MY_Controller.php" etc. Does anyone have working version of how to protected pages or load user informations into object $the_user which would contain all user information with GROUP included? Because I couldn't find none. I really don't like to copy/paste 10 lines of code to each controller.
[eluser]ZaLiTHkA[/eluser]
[quote author="ZaLiTHkA" date="1343033244"]...I setup [ip_address] with a data type of varbinary(16).[/quote] Just to update my issue... I just got some help from a friend of mine who's had a lot more experience in SQL than I have, and we got this sorted. Apparently I was using the incorrect data type for the [ip_address] column, after changing from varbinary(16) to varchar(16), it seems to be working properly now. ![]()
[eluser]SP1966[/eluser]
Im running into the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `0` = 'admin@admin.com' LIMIT 1' at line 2 SELECT `username`, `email`, `id`, `password`, `active`, `last_login` WHERE `email` = 'admin@admin.com' LIMIT 1 Why is there no FROM in this SQL??? |
Welcome Guest, Not a member yet? Register Sign In |