EllisLab text mark
Advanced Search
85 of 88
85
   
Ion Auth - Lightweight Auth System based on Redux Auth 2
Posted: 28 July 2012 05:25 PM   [ Ignore ]   [ # 1261 ]   [ Rating: 0 ]
Avatar
Joined: 2010-01-11
92 posts
sevengraff - 27 July 2012 02:22 PM

Yeah whats the story with how Ion_Auth stores IP addresses? I was surprised that it seem to store them as raw number instead of a string that I can more easily search/deal with.

Also, does Ion_Auth generate the documentation at http://benedmunds.com/ion_auth/ with a tool or is it just typed out as a HTML document? I’d like to work on the documentation but I’m not sure if I should embed it in the code or edit the docs directly.

i don’t know how IA doc is made but you could look at http://manual.phpdoc.org/HTMLframesConverter/default/ to build docs based on your code

 Signature 

WAMPSERVER: http://www.wampserver.com/
NETBEANS 7: http://netbeans.org
MAXTHON 3: http://www.maxthon.com
Win7 64bits

 
Posted: 04 August 2012 09:27 AM   [ Ignore ]   [ # 1262 ]   [ Rating: 0 ]
Joined: 2012-03-06
10 posts

First I must say thank you for this awesome module!

Secondly I have a question, is there any way I can protect whole define page (ex: url/index.php/admin) without writing
if (!$this->ion_auth->logged_in())
  {
  redirect(‘user/login’);
  }
  elseif (!$this->ion_auth->is_admin())
  {
  //redirect them to the home page because they must be an administrator to view this
  redirect($this->config->item(‘base_url’), ‘refresh’);
  }
in every controller that loads views?

 
Posted: 04 August 2012 12:17 PM   [ Ignore ]   [ # 1263 ]   [ Rating: 0 ]
Avatar
Joined: 2011-04-13
256 posts

This should help: http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY

 Signature 

Expert Web Development Backed by LIFETIME Guarantee
CI-Foundation v1
InfinityTracker - Project Management

 
Posted: 08 August 2012 05:27 PM   [ Ignore ]   [ # 1264 ]   [ Rating: 0 ]
Avatar
Joined: 2012-05-25
5 posts

How do I change the groups that a registered user is in? update() just takes a $data array but only updates the user table, not the users_groups table. Also, there is a get_users_groups() but no corresponding set_users_groups().
The docs list both update_user() and update() but I only see an implementation for update().

edit
Oh there is an undocument function, add_to_group( $groupid, $userid ) that will do it. Super cool, just found it in the model, gonna play around with it.

 
Posted: 13 August 2012 07:07 AM   [ Ignore ]   [ # 1265 ]   [ Rating: 0 ]
Joined: 2012-03-06
10 posts
Mirge - 04 August 2012 12:17 PM

This should help: http://philsturgeon.co.uk/blog/2010/02/CodeIgniter-Base-Classes-Keeping-it-DRY

I tried with this one
http://jondavidjohn.com/blog/2011/01/scalable-login-system-for-codeigniter-ion_auth

but it’s not working anymore and github contains only basic stuff without extended controller etc.
Also tutorial is a little mess, it contains Admin_Controller where it’s saying “create MY_Controller.php” etc.

Does anyone have working version of how to protected pages or load user informations into object $the_user which would contain all user information with GROUP included? Because I couldn’t find none.

I really don’t like to copy/paste 10 lines of code to each controller.

 
Posted: 14 August 2012 08:38 AM   [ Ignore ]   [ # 1266 ]   [ Rating: 0 ]
Avatar
Joined: 2012-07-19
32 posts
ZaLiTHkA - 23 July 2012 04:47 AM

...I setup [ip_address] with a data type of varbinary(16).

Just to update my issue… I just got some help from a friend of mine who’s had a lot more experience in SQL than I have, and we got this sorted. Apparently I was using the incorrect data type for the [ip_address] column, after changing from varbinary(16) to varchar(16), it seems to be working properly now. smile

 
Posted: 15 August 2012 09:53 PM   [ Ignore ]   [ # 1267 ]   [ Rating: 0 ]
Joined: 2012-08-15
5 posts

Im running into the following error:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘WHERE `0` = ‘admin@admin.com’ LIMIT 1’ at line 2

SELECT `username`, `email`, `id`, `password`, `active`, `last_login` WHERE `email` = ‘admin@admin.com’ LIMIT 1

Why is there no FROM in this SQL???

 
Posted: 20 August 2012 09:02 AM   [ Ignore ]   [ # 1268 ]   [ Rating: 0 ]
Joined: 2012-05-11
2 posts

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.

 
Posted: 30 August 2012 10:04 AM   [ Ignore ]   [ # 1269 ]   [ Rating: 0 ]
Joined: 2012-06-06
4 posts
digital_frog - 26 June 2012 04:05 PM

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.

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/

 
Posted: 30 August 2012 10:16 AM   [ Ignore ]   [ # 1270 ]   [ Rating: 0 ]
Joined: 2012-07-22
1 posts

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?

 
Posted: 31 August 2012 06:10 PM   [ Ignore ]   [ # 1271 ]   [ Rating: 0 ]
Avatar
Joined: 2010-01-11
92 posts
damemi - 30 August 2012 10:16 AM

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?

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

damemi - 30 August 2012 10:16 AM

How should I have my codeigniter/database configured from a fresh install?

see configuration @ http://ellislab.com/codeigniter/user-guide/database/index.html

 Signature 

WAMPSERVER: http://www.wampserver.com/
NETBEANS 7: http://netbeans.org
MAXTHON 3: http://www.maxthon.com
Win7 64bits

 
Posted: 26 September 2012 11:00 AM   [ Ignore ]   [ # 1272 ]   [ Rating: 0 ]
Joined: 2010-10-27
114 posts

I am returning a list of users with the following:

$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?

 
Posted: 10 October 2012 03:19 PM   [ Ignore ]   [ # 1273 ]   [ Rating: 0 ]
Avatar
Joined: 2012-06-13
15 posts

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?

 
Posted: 13 October 2012 06:19 PM   [ Ignore ]   [ # 1274 ]   [ Rating: 0 ]
Avatar
Joined: 2010-01-11
92 posts

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 ?

 Signature 

WAMPSERVER: http://www.wampserver.com/
NETBEANS 7: http://netbeans.org
MAXTHON 3: http://www.maxthon.com
Win7 64bits

 
Posted: 08 November 2012 05:09 PM   [ Ignore ]   [ # 1275 ]   [ Rating: 0 ]
Joined: 2012-06-03
2 posts

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

 
85 of 88
85