[thelist] NEED: Perl Programmer for Captcha

Bill Moseley moseley at hank.org
Mon Nov 6 13:46:24 CST 2006


On Sat, Nov 04, 2006 at 01:41:40PM -0600, Jeff Hinds wrote:
> I'm looking to hire someone who can setup and install a Captcha script for a
> CGI web form?

I'm using Catalyst which has a Captcha plugin and all I did to add
this was:

=item captcha

Generates captcha images.

=cut

sub captcha : Local {
    my ( $self, $c ) = @_;
    if ( $c->config->{captcha} ) {
        $c->create_captcha;
    } else {
        $c->res->status( 404 );
    }
}

So perhaps you could look at the Captcha plugin and duplicate what it does in
your script.  You can see it's not very complex:

http://search.cpan.org/src/KAZEBURO/Catalyst-Plugin-Captcha-0.03/lib/Catalyst/Plugin/Captcha.pm

I will note that I found the generated images a bit hard to read at
times.



-- 
Bill Moseley
moseley at hank.org




More information about the thelist mailing list