![]() |
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 - 10-08-2010 [eluser]techgnome[/eluser] Not only that but you could also use it to prevent the use of either questionable/banned/or otherwise taboo usernames pretty quickly. Just a quick note of warning implementing either of those methods, don't forget to sanitize the user name before comparing it to the database. Otherwise "0'; DELETE * FROM Users;" will have a field day logging in. ![]() -tg Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-19-2010 [eluser]TerryT[/eluser] Just starting with Ion Auth and everything working great. Couple of questions: 1. Activate/Deactivate - these functions set a flag and I am assuming it is up to us to use as we want. Does Ion Auth use the flag anywhere in its code? 2. I see a view for editing a user and a function in the model, but nothing in the controller similar to create_user. Am I missing something? Thanks, Terrt Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-21-2010 [eluser]drumbassrockroll[/eluser] I've just got up and running with this library. Great stuff seems to do everything I want but I'm running into a problem. I want to make the result of the logged_in() function available to all of the views in my application, and I figured the best way to do that was to include a variable ($logged_in) in every $data array I pass though to the view. In order to do that I tried to simply extend the base controller (in the method described below). http://codeigniter.com/wiki/MY_Controller_-_how_to_extend_the_CI_Controller/ There now seems to be a problem with loading the ion_auth library (And at this stage I'm not even using any functionality of the library, just trying to load it along with my custom controller which I've implemented exactly as outlined in the above link). Code: A PHP Error was encountered It looks like it's something to do with loading the model - which I don't understand because the ion_auth model simply extends the core CI_Model. Why should it care what controller I'm using? Any help appreciated. Thanks. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-21-2010 [eluser]Ben Edmunds[/eluser] drumbassrockroll, Please post your MY_Controller, the controller that you are running, and your autoload config file. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-21-2010 [eluser]Ben Edmunds[/eluser] TerryT, 1. Yes, the library does use the flag. For retrieving active or inactive users. 2. The code that's there is an example, the library and model are Ion Auth and the controllers and views are just examples for you to add to and customize to suit your needs. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-22-2010 [eluser]drumbassrockroll[/eluser] Thanks for the Reply. Requested files Attached Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-22-2010 [eluser]Ben Edmunds[/eluser] drumbassrockroll, Try this out. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-22-2010 [eluser]drumbassrockroll[/eluser] Thanks for your help! The only change I could see was that the MY_Controller Library was not specified in the autoload library array, although I'm sure I did try removing it previously and I was getting an error saying that MY_Controller was not a class... I must be mistaken, thanks again, I can get on with writing my application. :-) Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-25-2010 [eluser]carvingCode[/eluser] Ben - Just wanted to say your development and support of this lib is much appreciated. I've got two significant apps I'm beginning work on and have no qualms about making ion_auth a crucial part of the setup. Thanks again. Randy Brown Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-25-2010 [eluser]Ben Edmunds[/eluser] Thanks Randy! |