![]() |
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 - 04-18-2011 [eluser]Random dude[/eluser] Should we password protect models and not just controllers? Is that the newbest question ever? Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-19-2011 [eluser]vivekh[/eluser] Hi Ben, Have a noob question. Just need a suggestion if Ion Auth would be suitable for my requirement. My site should have three types of users. A user, seller and the admin. So is it suitable for me to use Ion Auth or is it only suitable for one type of user and an admin. Do I need to make a lot of change if I use Ion Auth? Thanks. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-20-2011 [eluser]Unknown[/eluser] my bad . has solved .. i did stupid thing XD thanks for the library ben . Regards, Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-20-2011 [eluser]austintbiggs[/eluser] I'm trying to keep my views organized into subfolders [views/auth, views/admin, etc..] and so I'm trying to get my "admin.php" controller to (I guess) "extend" ion auth; by simply calling it's functions and adding my own from a separate controller (dashboard.php). How would I do this without putting views/auth into views/dashboard? Thanks. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-22-2011 [eluser]pelkin000[/eluser] [quote author="joytopia" date="1270367536"]Happy Easter, Ben, this morning - the session cookies expired over night – I got on two of three browsers these error messages: Code: A PHP Error was encountered Code: A PHP Error was encountered Code: Ein Datenbankfehler ist aufgetreten I cannot figure out, why it's only in two of three browsers. This is a bit confusing. In the two browsers (FireFox and Safari)I have all the three cookies. In the other one (Opera) I have only the session cookie. Best regards Bernd[/quote] I am still having this problem. I am running PHP 5.2, CI 2.0, Ion Auth, Firephp and Uh Oh! Code: ErrorException [ Notice ]: Undefined property: Practice::$ion_auth This problem seems to creep in primarily when using IE7 (no issues with FF3, 4 or Chrome), though that doesn't make much sense to me. Practice Controller: Code: class Practice extends CI_Controller { Anyone have any ideas? Ive made adjustments to some of the places in Ion_auth to do an isset check on ->_extra_where. Here is the line just before the final error: Code: APPPATH/models/ion_auth_model.php [ 966 ] » CI_Model->__get(arguments) Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-22-2011 [eluser]pelkin000[/eluser] A quick follow up - this problem seems to creep up when I attempt to access a page that is 'restricted' without first having gone to a non-restricted page on the same domain first. That is to say, if I open my browser and type in www.example.com/restricted - i get the error. But if I type in www.example.com/login and THEN (even if i dont log in properly) go to www.example.com/restricted it will either let me in or redirect me correctly (depending on if i actually logged in). Hopefully that helps. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-22-2011 [eluser]idealws[/eluser] First let me say thank you for the addition to CI. It is working well and saved me a lot of time. My question is about the last login. I noticed that when I login it updates the last login as the current login which is fine except unless I am missing something, how do I get the actual last login for the current user? To explain I think they know they are logging in right this minute and where they are logging in from. I believe the purpose of the last login would be to show the user when they or someone else had logged in before todays login. Is there something I missed so I can show the last login before the users login is updated? Hopes this makes since, Regards, Ray Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-22-2011 [eluser]idealws[/eluser] I didn't find what I was looking for so here is what I did in case there is someone else looking for the samething: Modify the users table to be like so: Code: CREATE TABLE `tcs_users` ( Notice the addition of last_login_ip I then modified the ion_auth_model.php file located in the models directory (there are two modifications made): First change was with the login function lines 560-615: Code: /** Next I changed the update_last_login function lines 969-987: Code: /** Now the users last login will be available via session data like so: Code: echo $this->session->userdata('userlastlogin') Hope this helps. Might already be in there somewhere but I could not find it. This will allow you to print out the last login for this user not the current login. Regards, Ray Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-23-2011 [eluser]austintbiggs[/eluser] Will you be updating Ion Auth to fit the new CI_Controller / CI_Model and public / private functions? instead of using Code: if ( ! class_exists('Controller')) using Code: class Auth extends CI_Controller { Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 04-23-2011 [eluser]Vanitas[/eluser] Hi, for few days I'm playing with different auth libraries. @EDIT I used active records instead of ion auth functions and now works fine ![]() |