Gerda Shank > HTML-FormHandler-0.40018 > HTML::FormHandler::Field::Captcha

Download:
HTML-FormHandler-0.40018.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Source   Latest Release: HTML-FormHandler-0.40056

NAME ^

HTML::FormHandler::Field::Captcha - captcha field with GD::SecurityImage

VERSION ^

version 0.40018

SYNOPSIS ^

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::TraitFor::Captcha.

   package MyApp::Form::Post;
   use HTML::FormHandler::Moose;
   with 'HTML::FormHandler::TraitFor::Captcha';

You can set the following attributes on the 'captcha' field:

   height, width, scramble, lines, gd_font

Example:

   has 'captcha' => ( height => '24', width => '70' );

AUTHOR ^

FormHandler Contributors - see HTML::FormHandler

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: