Part of the EllisLab Network
   
2 of 13
2
CL Auth [BETA] v0.2.5
Posted: 13 May 2008 05:09 AM   [ Ignore ]   [ # 11 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  08-25-2007
zenonn - 07 May 2008 10:17 PM

hey flash,
Well still no luck. I extended the the confirmation time, cookies enabled.
Chris

Sorry I hadn’t replied to this sooner. Have you sorted the problem?
After a bit of thought, I think the problem is the timestamp associated with the Captcha image. Check the time you are using on your server and check the timestamp that Captcha is using. This may have caused it to expire prematurely.

 Signature 

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

Profile
 
 
Posted: 13 May 2008 10:46 AM   [ Ignore ]   [ # 12 ]  
Summer Student
Total Posts:  10
Joined  04-28-2008

Ok I will try that thank you.

Profile
 
 
Posted: 15 May 2008 07:46 PM   [ Ignore ]   [ # 13 ]  
Summer Student
Total Posts:  3
Joined  01-08-2008

I upgraded 1.6.1 to 1.6.2 and CL Auth doesnt work properly anymore. Anyone tried CL Auth on 1.6.2?

Profile
 
 
Posted: 16 May 2008 05:13 AM   [ Ignore ]   [ # 14 ]  
Summer Student
Avatar
Total Posts:  20
Joined  05-08-2008
serdarakarca - 15 May 2008 11:46 PM

I upgraded 1.6.1 to 1.6.2 and CL Auth doesnt work properly anymore. Anyone tried CL Auth on 1.6.2?

dude can you specify the “problem”? I have tried 1.6.2 but i didn’t encounter any problems, which part of CL_Auth did you encounter a problem so other users could confirm it also including me…  cheese

Profile
 
 
Posted: 16 May 2008 07:30 AM   [ Ignore ]   [ # 15 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  08-25-2007
serdarakarca - 15 May 2008 11:46 PM

I upgraded 1.6.1 to 1.6.2 and CL Auth doesnt work properly anymore. Anyone tried CL Auth on 1.6.2?

I haven’t had a chance to test compatibility with 1.6.2 yet. It’s going to be harder to debug since they have removed the closing php tags now…

I shall have a test with it this weekend.

 Signature 

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

Profile
 
 
Posted: 19 May 2008 03:06 PM   [ Ignore ]   [ # 16 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  08-25-2007

I have checked CL Auth BETA v0.1 with CodeIgniter 1.6.2 and it does work with no problems.

 Signature 

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

Profile
 
 
Posted: 19 May 2008 07:42 PM   [ Ignore ]   [ # 17 ]  
Summer Student
Total Posts:  3
Joined  01-08-2008

Ok, thanks for checking. It was my mistake. It works great!

Profile
 
 
Posted: 22 May 2008 02:19 PM   [ Ignore ]   [ # 18 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  05-08-2008

Thanks Flash, works nice! Perhaps you can change CL_Session to just Session, that will make $this->session->userdata() work in already existing code (and one session lib should be more than enough wink).

If someone would like a calculated captcha, here is some replacement code:

function captcha()   // <== replace this function in CL_Auth with code below
    
{
        $this
->obj->load->plugin('captcha');

        
$operator = array('+''-');
        
$captcha_value mt_rand(20100).$operator[mt_rand(0count($operator)-1)].mt_rand(120);  
        
        
$vals = array(
            
'word'             => $captcha_value.' = ?',
            
'img_path'     => $this->obj->config->item('CL_captcha_path'),
            
'img_url'     => '/assets/captcha/',
            
'font_path'     => $this->obj->config->item('CL_captcha_fonts_path'),
            
'img_width'     => 200,
            
'img_height' => 50,
            
'expiration' => $this->obj->config->item('CL_captcha_expire')
        );

        
$cap create_captcha($vals);
        
        
eval("\$captcha_outcome = $captcha_value;");
        
        
$store = array(
        
'captcha_word' => $captcha_outcome,
        
'captcha_time' => $cap['time']);

        
// Plain, simple but effective
        
$this->obj->cl_session->set_flashdata($store);

        
// Set our captcha
        
$this->captcha true;
        
$this->captcha_img $cap['image'];
    

The function works perfectly out-of-the-box, but I just like the calculated code more wink I used the captcha from 1.6.2, but this should work with CL_captcha too.

Profile
 
 
Posted: 02 June 2008 05:45 AM   [ Ignore ]   [ # 19 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  08-25-2007

Thanks for the contributed code Maxximus smile

I don’t quite understand what the difference between having a calculated captcha is from a random one but it’s nice to know that we have the choice of both.

UPDATE: Not much has been changed to CL_Auth lately… The code seems to be working fine. So what I think I will do instead is write up some documentation on how to use the library instead.

Is there any success stories out there with using this library?

 Signature 

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

Profile
 
 
Posted: 02 June 2008 07:40 AM   [ Ignore ]   [ # 20 ]  
Grad Student
Avatar
Rank
Total Posts:  58
Joined  05-08-2008

Well actually it’s just an additional hurdle to stop spam, since it’s not that hard to decode a CAPTCHA image to text for a spambot. Besides that, it is probably a bit more user friendly, some of the CAPTCHA images I’ve seen are really hard to read.

At this moment I’m building a project with CL_auth, it’s looking great so far! I think you can promote it to ‘Gold’;).

Probably will convert it a tiny bit to be able to use it as a module in Modular Extensions - HMVC.

One thing, the 0.1Beta tag might scare off some folks. I was waiting a bit as well on a next version at first. Finally downloaded it, and to my surprise it’s actually more complete than some 1.x and 2.x Auth versions out there…

So thanks for creating a really nice lib!

Profile
 
 
   
2 of 13
2