EllisLab text mark
Advanced Search
1 of 88
1
   
Ion Auth - Lightweight Auth System based on Redux Auth 2
Posted: 13 February 2010 06:19 PM   [ Ignore ]   [ # 11 ]   [ Rating: 0 ]
Joined: 2008-01-18
128 posts

@atno,
It would be great if Ben could predict those next couple years - not just for himself but can you imagine what that would do for Codeigniter itself?  wink

@Markko,
Check out his controllers in the download sample and the library code itself. Documentation would be great but the code really is extremely well written with comments.

 
Posted: 13 February 2010 11:20 PM   [ Ignore ]   [ # 12 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

Markko,

I’m really bad about documentation so I tried to make the code easy to understand and build a comprehensive demo.


If you have questions or need additional support feel free to email me.


atno,

I definitely plan to continue supporting it.  If something ever comes up where I can’t I’ll pass it off to someone else so don’t worry about losing support.

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 18 February 2010 10:36 PM   [ Ignore ]   [ # 13 ]   [ Rating: 0 ]
Joined: 2008-01-18
128 posts

Ben,

Great library/solution. After updating to your most recent code on Github (commit_id: 18e39bd1), I noticed after login that I was redirected to http://my.domain.com// (<—-notice the extra slash).

The base_url in my config is a sub-domain, don’t know if that mattered any but doubt it.

Anyway, I switched my code in the app/controllers/auth.php to the following:

...controllers/auth.php

//log the user in
    
function login()
    
{
        $this
->data['title'"Login";
        
$redirect_uri_successful_login $this->config->item('base_url',TRUE);

        
//validate form input
        
$this->form_validation->set_rules('email''Email Address''required|valid_email');
        
$this->form_validation->set_rules('password''Password''required');

        if (
$this->form_validation->run() == true//check to see if the user is logging in
            
if ($this->ion_auth->login($this->input->post('email'), $this->input->post('password'))) //if the login is successful
                //redirect them back to the home page
                
$this->session->set_flashdata('message'"Logged In Successfully");
                
redirect($redirect_uri_successful_login'refresh');

... 

I’m thinking you could set this in your ion_auth.php in the config folder?

 
Posted: 18 February 2010 11:16 PM   [ Ignore ]   [ # 14 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

Thanks for pointing that out 2think.

The controller is just example code so feel free to modify it as much as needed.  I went ahead and pushed a change to use base_url instead of ‘/’ in the home page redirects.


Thanks!

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 20 February 2010 08:24 AM   [ Ignore ]   [ # 15 ]   [ Rating: 0 ]
Avatar
Joined: 2009-04-14
95 posts

Hi,
I have user redux_auth with extensive customisation that I did myself. Particularly:
1) Added the ability to login with email OR username
2) Introduced error messages, such as “Incorrect username/password”

Will this library support the above mentioned features?

 
Posted: 22 February 2010 05:39 PM   [ Ignore ]   [ # 16 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

samota:

Currently Ion Auth supports your #1 but not #2. 

Adding multi-lingual error messages is on the to-do list though.

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 22 February 2010 05:53 PM   [ Ignore ]   [ # 17 ]   [ Rating: 0 ]
Avatar
Joined: 2008-05-04
166 posts

Hey Ben,

Got the 411 on Ion Auth from Phil. Are you guys planning to incorporate “Remember Me” functionality into Ion Auth?

 Signature 

Reality Knights - Have more fun

 
Posted: 22 February 2010 06:03 PM   [ Ignore ]   [ # 18 ]   [ Rating: 0 ]
Avatar
Joined: 2008-08-29
307 posts
Devon Lambert - 22 February 2010 10:53 PM

Are you guys planning to incorporate “Remember Me” functionality into Ion Auth?

+1 for that.

I will be trying this out. Thanks for this smile

 Signature 

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

 
Posted: 22 February 2010 06:17 PM   [ Ignore ]   [ # 19 ]   [ Rating: 0 ]
Avatar
Joined: 2009-07-26
818 posts

Devon/NateL:

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


I’ll add it to the to-do list.


Thanks!

 Signature 

BenEdmunds.com

Contact Me:                                    My Code: 

  ben.edmunds@gmail.com            Github
  @benedmunds

 
Posted: 23 February 2010 01:05 AM   [ Ignore ]   [ # 20 ]   [ Rating: 0 ]
Avatar
Joined: 2008-08-29
307 posts

Hey Ben,

This returned the full path, as I expect it:

if(!is_really_writable(dirname(__FILE__))): 
 Signature 

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

 
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.

 
1 of 88
1