Ion Auth - Lightweight Auth System based on Redux Auth 2 |
[eluser]Ben Edmunds[/eluser]
Frank, What browser are you using? Are you clearing cookies or anything?
[eluser]hugle[/eluser]
Hello Ben and others, I think it's not the Ion-Auth issue, but I did not know where else to ask it.. I've been playinig with SWF uploaders for few days, and came to one of the swf uploaders (baicaly from this post: http://ellislab.com/forums/viewthread/133388/) the problem is, that I have an Admin controller, which check for logged in user..: Code: if (!$this->ion_auth->logged_in()) { but the codeigniter does not recognize this SWF upload as the 'logged in user'... and the uploader fails to upload. I have tried removing this code and upload starts working... Maybe you guys have some thought or ideas how to make this upload authentificate inside CI ? thank you very much ![]()
[eluser]Ben Edmunds[/eluser]
Hugle, Is the uploader code in your controller? Please post some more code..
[eluser]wgarcia[/eluser]
Hello guys, I'm new with CI and I downloaded ion auth a few hours ago and installed in a clean CI installation. When I enter the login info (admin@admin.com, password) I get this message: A Database Error Occurred Error Number: 1046 No database selected SELECT COUNT(*) AS `numrows` FROM (`users`) WHERE `email` = 'admin@admin.com' Am I doing something wrong? BTW, Ben, I would like to help translating it to spanish. Thanks in advance
[eluser]Ben Edmunds[/eluser]
wgarcia, Do you have your database info correct in your database.php config file? I'd love to get a spanish translation, you can either just email me the language file or fork the repo on github and do a pull request. Thanks,
[eluser]wgarcia[/eluser]
Haha sorry, that was it... I didn't filled the info in the database.php config file. Another question, do I have to change something to use characters like "ñ, á, é, í..." in users name and last name? because if I use them I get a database error. I'm reading the github help to understand how to do it ![]() Thanks a lot Ben
[eluser]hugle[/eluser]
[quote author="Ben Edmunds" date="1273026978"]Hugle, Is the uploader code in your controller? Please post some more code..[/quote] Hello Ben, yeah, sure I can paste the code.. My controller is (it's extending the Admin Controller, where 'is_logged_in' is checked): Code: // basic controller function, it's just showing the view (it's Phil's template lib) later, the view: Code: [removed] as you can see from the view, uploader calls : Code: upload_url: "/admin/categories/do_upload" this function is: Code: function do_upload() print_r - is for debugging only purposes here... and my Admin_Controller.php is having this line: Code: if (!$this->ion_auth->logged_in()) { The SWF uploader does not upload the files, with this check.. if I comment out the 'redirect' line - it starts uploading smoothly.. As I read on the internet, it is somehow combiner with sessions etc, etc... but honestly, it didn't give me too much information ![]() Thanks for looking into my problem! cheers
[eluser]Ben Edmunds[/eluser]
The only suggestion I have without troubleshooting the code is to make sure the url you are linking to and the url you are linking from are on the same base_url. For example, if the user is one http://www.yoursite.com and you are linking to http://yoursite.com you may experience issues with the scope. You really shouldn't but I've had issues with that in the past. If you want a temporary quick and dirty hack just change your admin controller to check for is_logged_in || $this->uri->segment(2) == 'do_upload'. If you upload this somewhere and give me access to it I can help you more but nothing is really jumping out at me. You can always email me too if you need more help.
[eluser]hugle[/eluser]
[quote author="Ben Edmunds" date="1273104653"]The only suggestion I have without troubleshooting the code is to make sure the url you are linking to and the url you are linking from are on the same base_url. For example, if the user is one http://www.yoursite.com and you are linking to http://yoursite.com you may experience issues with the scope. You really shouldn't but I've had issues with that in the past. If you want a temporary quick and dirty hack just change your admin controller to check for is_logged_in || $this->uri->segment(2) == 'do_upload'. If you upload this somewhere and give me access to it I can help you more but nothing is really jumping out at me. You can always email me too if you need more help.[/quote] Hello Ben, thanks for your time, I'll contact you soon, so we can discuss my problem.. ![]() ![]()
[eluser]Timothy_[/eluser]
Hello, I am currently transitioning from Redux Auth 2 to Ion Auth. I am using the new controller to handle all authentication. I have updated the config file to my sites settings. I have not changed anything in the database. When I try and login I get the following error. Quote:A Database Error Occurred I have read through this thread and found someone had a similar problem. I have tried changing the "store salt" config value but as I said my database is still from Redux Auth 2. Thanks Tim |
Welcome Guest, Not a member yet? Register Sign In |