![]() |
Ion Auth - Lightweight Auth System based on Redux Auth 2 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Ion Auth - Lightweight Auth System based on Redux Auth 2 (/showthread.php?tid=27435) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
|
Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [eluser]Ben Edmunds[/eluser] Frank, What browser are you using? Are you clearing cookies or anything? Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [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 ![]() Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [eluser]Ben Edmunds[/eluser] Hugle, Is the uploader code in your controller? Please post some more code.. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [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 Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [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, Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [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 Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-04-2010 [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 Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-05-2010 [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. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-05-2010 [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.. ![]() ![]() Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-05-2010 [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 |