Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]Ben Edmunds[/eluser]
Hey Nikos, Sorry but I never got around to adding that. Feel free to send a pull request if you have a chance to add it though. Thanks!
[eluser]ReyPM[/eluser]
Hi, I'm having a issue here using the library. I have this controller but for some reason when I try to access update() function I got redirect to login form. Can any help me here? What I'm doing wrong?
[eluser]Ben Edmunds[/eluser]
In the constructor you're redirecting to the login page if not logged in. Are you sure the user is logged in?
[eluser]ReyPM[/eluser]
[quote author="Ben Edmunds" date="1355425099"]In the constructor you're redirecting to the login page if not logged in. Are you sure the user is logged in?[/quote] Yes it's logged in because I use the same in another controllers and works fine :-(
[eluser]Ben Edmunds[/eluser]
Are you overwriting the session values anywhere? I would inspect the session and make sure it looks right. Also, make sure your session cookie name doesnt have an underscore as that can cause issues with CI's session lib.
[eluser]ReyPM[/eluser]
Hi Edmuns, see here: Code: session_id e7c7b4364b5fcd5f9cdf3e12ae047d5a
[eluser]Ben Edmunds[/eluser]
Looks good, as a test comment out that redirect code in the constructor and see what happens.
[eluser]ReyPM[/eluser]
[quote author="Ben Edmunds" date="1355427487"]Looks good, as a test comment out that redirect code in the constructor and see what happens.[/quote] You mean this: Code: if (!$this->ion_auth->logged_in()) {
|
Welcome Guest, Not a member yet? Register Sign In |