Part of the EllisLab Network
   
13 of 13
13
CL Auth [BETA] v0.2.5
Posted: 21 November 2008 06:17 AM   [ Ignore ]   [ # 121 ]  
Summer Student
Total Posts:  7
Joined  11-15-2008

@camporter1
Thanks!

Profile
 
 
Posted: 02 December 2008 02:24 AM   [ Ignore ]   [ # 122 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  148
Joined  10-22-2008

Hi, i thought CL Auth users might be interested in my library:
http://codeigniter.com/forums/viewthread/98465/P0/

 Signature 

DX Auth library - User guide

Profile
 
 
Posted: 02 December 2008 06:42 AM   [ Ignore ]   [ # 123 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  08-25-2007

Looks great smile

I haven’t looked through all the code yet but it’s nice to someone taking a fork of CL Auth and making improvements.

For projects like DX Auth, I would like to create an SVN repository where people can track its activity and download the latest trunk if they want.

^^ Well Done Dexcell on your release. You pretty much covered everything that was due in the next major release smile

 Signature 

My Website | My Project
CL Auth BETA v0.2 - Authentication Library
CL Auth Documentation

Profile
 
 
Posted: 19 December 2008 12:44 PM   [ Ignore ]   [ # 124 ]  
Grad Student
Rank
Total Posts:  52
Joined  03-08-2008

Hello,

I think the new version’s registration does not work. I am using the code from your website:

$this->load->library('validation');
        
$val $this->validation;
        
        
$rules['username'"trim|required|xss_clean|min_length[5]|max_length[25]|username_check|username_start|alpha_dash";
        
$rules['password'"trim|required|xss_clean|min_length[6]|matches[password_confirm]";
        
$rules['password_confirm''trim|required|xss_clean';
        
$rules['email''trim|required|xss_clean|valid_email|email_check';
        
$rules['captcha_code''trim|xss_clean';
        
        
$val->set_rules($rules);
        
        
$fields['username']    'Username';
        
$fields['password']    'Password';
        
$fields['password_confirm''Confirm Password';
        
$fields['email''Email';
        
$fields['captcha_code''Captcha Code';
        
        
$val->set_fields($fields);
        
        if ( 
$val->run() === TRUE AND $this->cl_auth->register($val))
        
{
            redirect
("user");
        
}
        
else
        
{
            $this
->load->view("register");
        

But I receive errors

A Database Error Occurred

Error Number
1064

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 ' 'Object', '$1$Tz0a59Xa$YVaJYPu0wYk.DQWHgNwXb.', NULL, '2008-12-19 11:16:53')' at line 1

INSERT INTO 
`cl_users` (`user_ip`, `username`, `username_clean`, `password`, `email`, `created`) VALUES ('99.240.35.85', , 'Object''$1$Tz0a59Xa$YVaJYPu0wYk.DQWHgNwXb.'NULL'2008-12-19 11:16:53'

Now I noticed in the library that you need username, password and email but if I use it directly then the form does not validate.

Would appreciate the help.

Thanks.

Profile
 
 
Posted: 19 January 2009 09:31 PM   [ Ignore ]   [ # 125 ]  
Summer Student
Total Posts:  4
Joined  01-19-2009

Hello,

I’m new to CI, and have a few questions about getting CL Auth to work correctly.

I read the instructions provided on the README file, and to my knowledge have successfully implemented each step.  The database is setup correctly, I have all of the proper files in place, however I cannot access the ‘example’ page to test my setup.  I’ve spent a good hour going over my code / CL_Auth code, and have found nothing… so I turn to this forum.

What could I possibly be doing wrong?

Info:

CI             v1.7
CL Auth     v0.2.5

Eventually I want to integrate Vanilla Forums into my web app, but I must first over come this little problem.  Thank you in advance for any help I may receive.

Profile
 
 
Posted: 20 January 2009 03:54 AM   [ Ignore ]   [ # 126 ]  
Grad Student
Rank
Total Posts:  50
Joined  10-14-2008

Hi!

You might want to look at DxAuth, it is based on ClAuth, and works with CI 1.7, without any session hack, out of the box.

Profile
 
 
Posted: 20 January 2009 01:02 PM   [ Ignore ]   [ # 127 ]  
Summer Student
Total Posts:  4
Joined  01-19-2009

In the wee hours of the night I finally realized DXAuth was the new version of CL Auth…

Anyway, I have a few questions about it / Vanilla / phpBB integration that I will post in the appropriate thread.

Unless anyone here can point me in the right direction!

Profile
 
 
Posted: 25 January 2009 09:04 PM   [ Ignore ]   [ # 128 ]  
Grad Student
Rank
Total Posts:  33
Joined  09-22-2008

Hi,

I have a problem with cl_auth library. When a user logs into the website and then closes the browser the user is shown as still logged in next time they browse to the site. Even though I specify that the remember me parameter of the login function is set to false.

Any help would be appreciated.

thanks

V

Profile
 
 
Posted: 18 May 2009 12:23 PM   [ Ignore ]   [ # 129 ]  
Summer Student
Total Posts:  3
Joined  02-23-2009

Dear all,

I can’t seem to locate the problem here.

I want to only allow a-Z, 0-9 and unserscore (_) in the username.  As such I only define
$config[‘CL_username_chars’] = ‘_’;

However, the callback function username_format() in CL_Auth.php doesn’t seem to check the username format correctly.  It disallow non-alphanumeric character in the beginning and ending of username, but it allows any character in between.  E.g.:
“_user” and “user_” are illegal, but
“user name,1” is legal.

This seem to contradict the purpose of the function.

What is wrong with this statement in username_format() function?  Or my understanding is incorrect?

    if ( !preg_match(’/^[-a-z0-9$chars]/i’, $username) )
    {
      return true;
    }

Thanks in advance.

Profile
 
 
Posted: 08 March 2011 07:43 PM   [ Ignore ]   [ # 130 ]  
Summer Student
Avatar
Total Posts:  1
Joined  07-22-2009

EXISTS ANY NEW VERSION FOR CI 2?

Profile
 
 
   
13 of 13
13