Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]Random dude[/eluser]
Should we password protect models and not just controllers? Is that the newbest question ever?
[eluser]vivekh[/eluser]
Hi Ben, Have a noob question. Just need a suggestion if Ion Auth would be suitable for my requirement. My site should have three types of users. A user, seller and the admin. So is it suitable for me to use Ion Auth or is it only suitable for one type of user and an admin. Do I need to make a lot of change if I use Ion Auth? Thanks.
[eluser]Unknown[/eluser]
my bad . has solved .. i did stupid thing XD thanks for the library ben . Regards,
[eluser]austintbiggs[/eluser]
I'm trying to keep my views organized into subfolders [views/auth, views/admin, etc..] and so I'm trying to get my "admin.php" controller to (I guess) "extend" ion auth; by simply calling it's functions and adding my own from a separate controller (dashboard.php). How would I do this without putting views/auth into views/dashboard? Thanks.
[eluser]pelkin000[/eluser]
[quote author="joytopia" date="1270367536"]Happy Easter, Ben, this morning - the session cookies expired over night – I got on two of three browsers these error messages: Code: A PHP Error was encountered Code: A PHP Error was encountered Code: Ein Datenbankfehler ist aufgetreten I cannot figure out, why it's only in two of three browsers. This is a bit confusing. In the two browsers (FireFox and Safari)I have all the three cookies. In the other one (Opera) I have only the session cookie. Best regards Bernd[/quote] I am still having this problem. I am running PHP 5.2, CI 2.0, Ion Auth, Firephp and Uh Oh! Code: ErrorException [ Notice ]: Undefined property: Practice::$ion_auth This problem seems to creep in primarily when using IE7 (no issues with FF3, 4 or Chrome), though that doesn't make much sense to me. Practice Controller: Code: class Practice extends CI_Controller { Anyone have any ideas? Ive made adjustments to some of the places in Ion_auth to do an isset check on ->_extra_where. Here is the line just before the final error: Code: APPPATH/models/ion_auth_model.php [ 966 ] » CI_Model->__get(arguments)
[eluser]pelkin000[/eluser]
A quick follow up - this problem seems to creep up when I attempt to access a page that is 'restricted' without first having gone to a non-restricted page on the same domain first. That is to say, if I open my browser and type in www.example.com/restricted - i get the error. But if I type in www.example.com/login and THEN (even if i dont log in properly) go to www.example.com/restricted it will either let me in or redirect me correctly (depending on if i actually logged in). Hopefully that helps.
[eluser]idealws[/eluser]
First let me say thank you for the addition to CI. It is working well and saved me a lot of time. My question is about the last login. I noticed that when I login it updates the last login as the current login which is fine except unless I am missing something, how do I get the actual last login for the current user? To explain I think they know they are logging in right this minute and where they are logging in from. I believe the purpose of the last login would be to show the user when they or someone else had logged in before todays login. Is there something I missed so I can show the last login before the users login is updated? Hopes this makes since, Regards, Ray
[eluser]idealws[/eluser]
I didn't find what I was looking for so here is what I did in case there is someone else looking for the samething: Modify the users table to be like so: Code: CREATE TABLE `tcs_users` ( Notice the addition of last_login_ip I then modified the ion_auth_model.php file located in the models directory (there are two modifications made): First change was with the login function lines 560-615: Code: /** Next I changed the update_last_login function lines 969-987: Code: /** Now the users last login will be available via session data like so: Code: echo $this->session->userdata('userlastlogin') Hope this helps. Might already be in there somewhere but I could not find it. This will allow you to print out the last login for this user not the current login. Regards, Ray
[eluser]austintbiggs[/eluser]
Will you be updating Ion Auth to fit the new CI_Controller / CI_Model and public / private functions? instead of using Code: if ( ! class_exists('Controller')) using Code: class Auth extends CI_Controller {
[eluser]Vanitas[/eluser]
Hi, for few days I'm playing with different auth libraries. @EDIT I used active records instead of ion auth functions and now works fine |
Welcome Guest, Not a member yet? Register Sign In |