Show
Ignore:
Timestamp:
10/05/06 19:00:41 (2 years ago)
Author:
ogawa
Message:

Be compatible with CPAN version of Authen-Captcha which doesn't support "secret" option.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • captcha/trunk/plugins/captcha/captcha.pl

    r257 r259  
    7171    # configure Auth::Captcha 
    7272    $captcha->output_folder($cfg->{captcha_images_path}); 
    73     $captcha->secret($cfg->{captcha_secret} || ''); 
     73    $captcha->secret($cfg->{captcha_secret} || '') 
     74        if $captcha->can('secret'); 
    7475 
    7576    my $ttl = $cfg->{captcha_ttl};