Welcome Guest, Not a member yet? Register   Sign In
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
ip_address   192.168.2.106
user_agent   Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
last_activity   1355426695
user_data  
identity   [email protected]
username   administrator
email   [email protected]
user_id   1
old_last_login   1355411427
userCount   1
userSort   id_autor
userDirection   desc
author_id   44339
Ths is my session data

[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()) {
     //redirect('auth/login');
}
The view 'author/updateauthor' is showed as should be without problems (I´m executing update() method which is the one causing the problem)

[eluser]Ben Edmunds[/eluser]
Post your Mauthor model.

[eluser]ReyPM[/eluser]
Here http://pastebin.com/VfPzi7JG




Theme © iAndrew 2016 - Forum software by © MyBB