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 - 08-20-2012

[eluser]Unknown[/eluser]
Hi all!

First of all Congratz for Ben and all the users on keeping Ion Auth one of the best authentication i've tried.

Now to my only question. After a lot of tries, i wasnt able to find a "simple" way of list all users in a group. I can list all users, but can't get only admins or members.
I wanted to paginate a table with all members listed.


Thank your very much.



Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-30-2012

[eluser]Unknown[/eluser]
[quote author="digital_frog" date="1340741108"]I kind of broke my site with this, and was wondering if anyone knows what to do.

I have installed Ion_Auth into my site to replace a simple login I made from a tutorial video. The install worked and I began the process of converting the site to use Ion_Auth, so teacher/student and admin pages are protected by groups now, and logging in works from [http://localhost/example/auth/login]

The problem comes from trying to make logging in from the site main page instead of auth/login page. When I try to load the auth/login view into site.php, it gives me these error messages when I access the site:


A PHP Error was encountered

Severity: Notice

Message: Undefined variable: message

Filename: auth/login.php

Line Number: 7

Email/Username:
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: identity

Filename: auth/login.php

Line Number: 13

Password:
A PHP Error was encountered

Severity: Notice

Message: Undefined variable: password

Filename: auth/login.php

Line Number: 18


My front page is created by site.php, and auth.php is a separate controller. I tried copy/pasting auth.php into site.php, but that didn't seem to work. (My logic being that everything should be defined auth.php) I am still fairly new to codeigniter and therefore this may just be some n00bish mistake I'm overlooking.

======================================================================================
EDIT: Ok, I solved the problem, it was indeed a simple n00bish mistake.
I had simply forgot to route the form in my login_view properly. My old form_open linked to admin.php which handled the login process, but I only changed it to form_open('auth') instead of form_open('auth/login'). I figured I would leave this post here for any others that get stuck by anything similar.[/quote]
i'm having the same errors, have checked everything is fine. the problems starts whenever i try to load multiple views check it here http://ellislab.com/forums/viewthread/223489/


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-30-2012

[eluser]Unknown[/eluser]
After installing ion auth, I get a CI error saying I must set an encryption key to use the session class. When I set the key, however, I get a php 500 error on each page load. What could be the cause of this? How should I have my codeigniter/database configured from a fresh install?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 08-31-2012

[eluser]rip_pit[/eluser]
[quote author="damemi" date="1346336196"]After installing ion auth, I get a CI error saying I must set an encryption key to use the session class. When I set the key, however, I get a php 500 error on each page load. What could be the cause of this? [/quote]
I think it could be related to your hosting and not to CI or ion auth.
Read http://www.cyberciti.biz/tips/http-error-500-internal-server-for-php-pages-and-solution.html

[quote author="damemi" date="1346336196"] How should I have my codeigniter/database configured from a fresh install?[/quote]
see configuration @ http://ellislab.com/codeigniter/user-guide/database/index.html


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 09-26-2012

[eluser]Andy78[/eluser]
I am returning a list of users with the following:

Code:
$users = $this->ion_auth->users(1)->result();

then using a foreach loop in the view to echo out the fields for each user.

But I would like to check if each individual user is currently logged in or not and there does not seem to be a simple built in way of doing this with Ion auth.

I am using database sessions and I know its probably just a matter of querying the ci sessions table but Im not sure. Has anybody done this already? or is there some simple modifications I can make to ion auth that would make this easy?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-10-2012

[eluser]digital_frog[/eluser]
I've been using Ion_Auth on my website and it's working beautifully so far, I'm just a little lost as to how the email activation works. I found in the documentation a way to enable email activation as something necessary to register, but I couldn't find anything on how it's implemented. Does anyone have any experience with how Ion_Auth's email avtivation works?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 10-13-2012

[eluser]rip_pit[/eluser]
at registration IA creates a uniqid for the user/email,
ID is stored in DB, and then an activation link containing the ID is sent by email

The activation link will execute verification process, the ID in the activation url must matches the one in DB.
If match then user/email will be verified and allowed.

is that what you asked for ?


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 11-08-2012

[eluser]Kamahl[/eluser]
Thanks for this great tool. Is there any guide how to connect this with FB login? I want to give users option to choose regular registration or registration with their FB account


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 11-20-2012

[eluser]Yakow[/eluser]
[quote author="Kamahl" date="1352408943"]Thanks for this great tool. Is there any guide how to connect this with FB login? I want to give users option to choose regular registration or registration with their FB account[/quote]

great idea !


Ion Auth - Lightweight Auth System based on Redux Auth 2 - El Forum - 11-21-2012

[eluser]Ben Edmunds[/eluser]
@Kamahi,

Check out the social branch here:

https://github.com/benedmunds/CodeIgniter-Ion-Auth/tree/social

Feel free to hit up mamprogr with questions.