CodeIgniter Forums
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)



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! Tongue

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