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-13-2010 [eluser]Ben Edmunds[/eluser] megabyte, Those aren't bugs, they're just proposed enhancements. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]megabyte[/eluser] Once again confirming your awesomeness! I have been using a highly modified tank_auth but plan to give your a try. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-13-2010 [eluser]Ben Edmunds[/eluser] Glad to hear it. Just let me know if you have any questions. Take it easy, Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-14-2010 [eluser]davidjlynch[/eluser] Hi Ben, Thanks for the quick response, added both code snippets from page 25 to controller and works perfectly, once agin thanks for the support. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-14-2010 [eluser]davidjlynch[/eluser] Hi Ben, Thanks for the quick response, added both code snippets from page 25 to controller and works perfectly, once aagin thanks for the support. Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-14-2010 [eluser]MrCevic[/eluser] I was under the impression that Code: $this->ion_auth->is_group('admin', 'editors', 'writers') would work. Is this correct? Or do I need to use the cumbersome Code: $this->ion_auth->is_group('editors')||$this->ion_auth->is_group('editors')||$this->ion_auth->is_group('writers') Thanks for clarifying me on this point! Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-14-2010 [eluser]Phil Sturgeon[/eluser] [quote author="MrCevic" date="1273858519"]I was under the impression that Code: $this->ion_auth->is_group('admin', 'editors', 'writers') would work. Is this correct? Or do I need to use the cumbersome Code: $this->ion_auth->is_group('editors')||$this->ion_auth->is_group('editors')||$this->ion_auth->is_group('writers') Thanks for clarifying me on this point![/quote] $this->ion_auth->is_group(array('foo', 'bar')); Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-14-2010 [eluser]Timothy_[/eluser] [quote author="joytopia" date="1273785748"][quote author="Timothy_" date="1273747687"]Does anyone have a good solution to retrieving the users that are currently logged in? Thanks, Tim[/quote] What about showing the username from table ci_sessions WHERE last_activity > now() - 360 Best regards Bernd[/quote] Hi Bernd, Thanks for this. What measurement is the 360 you refer to and why have you chosen it? My guess is that it is in seconds? Thanks, Tim Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-15-2010 [eluser]joytopia[/eluser] Tim, the session is updated every 300 seconds by default: http://ellislab.com/codeigniter/user-guide/libraries/sessions.html 360 is just a bit overlap. Best regards Bernd Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 05-15-2010 [eluser]joytopia[/eluser] Ben, now I have joined github and pushed the files to http://github.com/joytopia/CodeIgniter-Ion-Auth/tree/joytopia Git and github are very new for me, and I hope I did everything allright. Did my pull request reach you? Best regards Bernd |