EllisLab text mark
Advanced Search
2 of 88
2
   
Ion Auth - Lightweight Auth System based on Redux Auth 2
Posted: 23 February 2010 03:25 AM   [ Ignore ]   [ # 21 ]   [ Rating: 0 ]
Avatar
Joined: 2009-08-28
80 posts
Ben Edmunds - 22 February 2010 11:17 PM

I’ve had one other person request this and I was waiting to see if there were many requests for this feature.

Ben,
I would appreciate a secure remember me function too.
Thanks for the great work and best regards,
Bernd.

 
Posted: 23 February 2010 08:00 AM   [ Ignore ]   [ # 22 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-29
77 posts
joytopia - 23 February 2010 08:25 AM
Ben Edmunds - 22 February 2010 11:17 PM

I’ve had one other person request this and I was waiting to see if there were many requests for this feature.

Ben,
I would appreciate a secure remember me function too.
Thanks for the great work and best regards,
Bernd.

+1

 Signature 

Junior PHP dev looking for a project to get started with.

 
Posted: 23 February 2010 04:30 PM   [ Ignore ]   [ # 23 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

NateL:  Huh???

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 24 February 2010 12:17 AM   [ Ignore ]   [ # 24 ]   [ Rating: 0 ]
Avatar
Joined: 2008-08-29
307 posts
Ben Edmunds - 23 February 2010 09:30 PM

NateL:  Huh???

OH wow. I totally responded to the wrong thread!!
Sorry about that.  red face

 Signature 

CodeIgniter From Scratch: Day 1 | Day 2 | Day 3 | Day 4 | Day 5 | Day 6 | Day 7

 
Posted: 24 February 2010 01:44 AM   [ Ignore ]   [ # 25 ]   [ Rating: 0 ]
Joined: 2009-03-07
40 posts

i am getting a “Unable to load the requested class: database” error when i go to the auth controller.
i did a quick query of the user table using AR in my welcome controller of a fresh copy of 1.7.2 and it returns a result set.

 
Posted: 24 February 2010 01:51 AM   [ Ignore ]   [ # 26 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

Eric:

It was a problem with a quick change I made the other day in the example controller.

It is fixed now and pushed to github.


Thanks,

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 27 February 2010 05:34 AM   [ Ignore ]   [ # 27 ]   [ Rating: 0 ]
Joined: 2010-02-22
5 posts

Nice work

 
Posted: 27 February 2010 10:19 AM   [ Ignore ]   [ # 28 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-29
77 posts

Hey Ben,

Looking good so far thanks again. Are you planning any future additions like the “remember” function and a captcha addition on registration ?

atn

 Signature 

Junior PHP dev looking for a project to get started with.

 
Posted: 27 February 2010 08:38 PM   [ Ignore ]   [ # 29 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

atno:

Yea I am planning to add remember me functionality but haven’t gotten around to it yet.

Captcha is also a good idea, does anyone else want captcha added?

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 28 February 2010 01:20 AM   [ Ignore ]   [ # 30 ]   [ Rating: 0 ]
Avatar
Joined: 2009-01-28
83 posts

Hey Ben,

Was wondering if you could talk about what you’re doing differently from let’s say DX_Auth? And I don’t mean only in terms of features, but are you approaching the architecture/coding differently?

cheers,

Naren

 
Posted: 28 February 2010 06:50 AM   [ Ignore ]   [ # 31 ]   [ Rating: 0 ]
Avatar
Joined: 2009-08-28
80 posts

Ben and Atno,

since captcha is just a feature of forms, perhaps it makes sens to combine Ion auth with Frank Michel’s great form library:

http://frankmichel.com/formgenlib/

Best regards, Bernd

 
Posted: 01 March 2010 03:39 PM   [ Ignore ]   [ # 32 ]   [ Rating: 0 ]
Avatar
Joined: 2009-08-28
80 posts

Phil and Ben,

ion_auth_model->update_user brings up an database error, if no field of the user table is in the $data-array.

Since I want to change username, password and email, I added an new if-condition:

if(array_key_exists('username'$data) OR array_key_exists('password'$data) OR array_key_exists('email'$data))
        
        
{
            
if(array_key_exists('password'$data))
            
{
                $data[
'password'$this->hash_password($data['password']);
            
}
    
            $this
->db->where($this->ion_auth->_extra_where);
    
            
$this->db->update($this->tables['users']$data, array('id' => $id));
        
 
Posted: 01 March 2010 04:21 PM   [ Ignore ]   [ # 33 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

naren_nag,

The main difference between Ion Auth and DX Auth and most of the other auth systems out there is that Ion Auth doesn’t try to be a complete user management system that in a way over takes your app and has a ton of files.

The goal of Ion Auth is to be as complete a user auth library as possible but to keep everything lightweight and small.  There are only three files required for Ion Auth.

Thanks!

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 01 March 2010 07:22 PM   [ Ignore ]   [ # 34 ]   [ Rating: 0 ]
Joined: 2008-01-18
128 posts

Naren_nag,

I think Ben’s decision to keep the system lightweight is a real plus for developers.

Not to knock DX or any of the other auth solutions out there but Ben’s solution makes updating and even debugging less of a challenge.

Also because it is so lightweight, it isn’t very difficult to see where we can customize it such as adding related tables, etc.

 
Posted: 01 March 2010 11:37 PM   [ Ignore ]   [ # 35 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

2think,

Thanks!


joytopia,

I think I’m missing something.  Please describe the problem and error?


Thanks,

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
2 of 88
2