Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalyst::plugin::captcha(3pm) [debian man page]

Catalyst::Plugin::Captcha(3pm)				User Contributed Perl Documentation			    Catalyst::Plugin::Captcha(3pm)

NAME
Catalyst::Plugin::Captcha - create and validate Captcha for Catalyst SYNOPSIS
use Catalyst qw/Captcha/; MyApp->config->{ 'Plugin::Captcha' } = { session_name => 'captcha_string', new => { width => 80, height => 30, lines => 7, gd_font => 'giant', }, create => [qw/normal rect/], particle => [100], out => {force => 'jpeg'} }; sub captcha : Local { my ($self, $c) = @_; $c->create_captcha(); } sub do_post : Local { my ($self, $c) = @_; if ($c->validate_captcha($c->req->param('validate')){ .. } else { .. } } #validate with CP::FormValidator::Simple sub do_post : Local { my ($self, $c) = @_; $c->form( validate => [['EQUAL_TO',$c->captcha_string]] ) } DESCRIPTION
This plugin create, validate Captcha. Note: This plugin uses GD::SecurityImage and requires a session plugins like Catalyst::Plugin::Session METHODS
create_captcha Create Captcha image and output it. validate_captcha $c->validate_captcha($key); validate key captcha_string Return a string for validation which is stroed in session. clear_captcha_string Clear a string which is stroed in session. CONFIGURATION
session_name The keyword for storing captcha string new create particle out These parameters are passed to each GD::Security's method. Please see GD::SecurityImage for details. SEE ALSO
GD::SecurityImage, Catalyst AUTHOR
Masahiro Nagano <kazeburo@nomadscafe.jp> COPYRIGHT AND LICENSE
Copyright (C) 2006 by Masahiro Nagano This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available. perl v5.10.1 2010-04-03 Catalyst::Plugin::Captcha(3pm)

Check Out this Related Man Page

Catalyst::Plugin::Session::Store::DBIC::Delegate(3pm)	User Contributed Perl Documentation  Catalyst::Plugin::Session::Store::DBIC::Delegate(3pm)

NAME
Catalyst::Plugin::Session::Store::DBIC::Delegate - Delegates between the session and flash rows DESCRIPTION
This class delegates between two rows in your sessions table for a given session (session and flash). This is done for compatibility with Catalyst::Plugin::Session::Store::DBI. METHODS
session Return the session row for this delegate. flash Return the flash row for this delegate. _load_row Load the specified session or flash row from the database. This is a wrapper around "find_or_create" in DBIx::Class::ResultSet to add support for transactions. expires Return the expires row for this delegate. As with Catalyst::Plugin::Session::Store::DBI, this maps to the "session" row. flush Update the session and flash data in the backend store. _clear_instance_data Remove any references held by the delegate. AUTHOR
Daniel Westermann-Clark <danieltwc@cpan.org> COPYRIGHT
Copyright 2006-2008 Daniel Westermann-Clark, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2010-11-29 Catalyst::Plugin::Session::Store::DBIC::Delegate(3pm)
Man Page

Featured Tech Videos