CodeIgniter Forums
CL Auth [BETA] v0.2.5 - 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: CL Auth [BETA] v0.2.5 (/showthread.php?tid=8048)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14


CL Auth [BETA] v0.2.5 - El Forum - 11-20-2008

[eluser]camporter1[/eluser]
nCoder, make sure that you set in your database the proper groups uri for registered users.

To do this, go to the `cl_group_uri` table, and insert a new row with the `group_id` set to "0" since you want to give access for registered users, set the `request_uri` to "/members" since that is the controller you want them to acces, and then you can leave `is_admin` to 0 unless you need it.

Here is the SQL insert statement for it:

Code:
INSERT INTO `yourdatabasename`.`cl_group_uri` (`group_id`, `request_uri`, `is_admin`) VALUES ('0', '/members', '0');

Anyways, I think this is a great library. I'm using it with a website I'm doing that requires lots of logins, and it works flawlessly. The only problem I'm having is with customizing the registration and login processes, such as adding my own options and tweaking things. If I figure it out, I'll be happy to post information up here. I think it would be great to build an interface that deals with the authentication system, so that it is easier for those who don't want to hand edit it don't have to. Obviously, some people here also want an administrative controller of some sort, so I might try that as well!


CL Auth [BETA] v0.2.5 - El Forum - 11-21-2008

[eluser]nCoder[/eluser]
@camporter1
Thanks!


CL Auth [BETA] v0.2.5 - El Forum - 12-02-2008

[eluser]dexcell[/eluser]
Hi, i thought CL Auth users might be interested in my library:
http://ellislab.com/forums/viewthread/98465/P0/


CL Auth [BETA] v0.2.5 - El Forum - 12-02-2008

[eluser]FlashUK[/eluser]
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


CL Auth [BETA] v0.2.5 - El Forum - 12-19-2008

[eluser]bigdaddysheikh[/eluser]
Hello,

I think the new version's registration does not work. I am using the code from your website:
Code:
$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

Code:
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.


CL Auth [BETA] v0.2.5 - El Forum - 01-19-2009

[eluser]MrLeeII[/eluser]
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.


CL Auth [BETA] v0.2.5 - El Forum - 01-20-2009

[eluser]Stoney[/eluser]
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.


CL Auth [BETA] v0.2.5 - El Forum - 01-20-2009

[eluser]MrLeeII[/eluser]
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!


CL Auth [BETA] v0.2.5 - El Forum - 01-25-2009

[eluser]otn3m3m[/eluser]
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


CL Auth [BETA] v0.2.5 - El Forum - 05-18-2009

[eluser]Unknown[/eluser]
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.