HTML::FormHandler::Field::Captcha
A Captcha class using GD::SecurityImage. Requires that that three methods be available from a form object:
$self->form->get_captcha; $self->form->set_captcha;
Using Catalyst and the Catalyst session plugin this field can be used in a form by using HTML::FormHandler::Form::Captcha.
package MyApp::Form::Post; use HTML::FormHandler::Moose; with 'HTML::FormHandler::Form::Captcha';
You can set the following attributes on the 'captcha' field:
height, width, scramble, lines, gd_font
Example:
has 'captcha' => ( height => '24', width => '70 );
To install HTML::FormHandler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormHandler
CPAN shell
perl -MCPAN -e shell install HTML::FormHandler
For more information on module installation, please visit the detailed CPAN module installation guide.