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::Authentication::Credential::NoPasswordUser)Contributed Perl DocumenCatalyst::Plugin::Authentication::Credential::NoPassword(3pm)

NAME
Catalyst::Authentication::Credential::NoPassword - Authenticate a user without a password. SYNOPSIS
use Catalyst qw/ Authentication /; package MyApp::Controller::Auth; sub login_as_another_user : Local { my ($self, $c) = @_; if ($c->user_exists() and $c->user->username() eq 'root') { $c->authenticate( {id => c->req->params->{user_id}}, 'nopassword' ); } } DESCRIPTION
This authentication credential checker takes authentication information (most often a username) and retrieves the user from the store. No validation of any credentials is done. This is intended for administrative backdoors, SAML logins and so on when you have identified the new user by other means. CONFIGURATION
# example <Plugin::Authentication> <nopassword> <credential> class = NoPassword </credential> <store> class = DBIx::Class user_model = DB::User role_relation = roles role_field = name </store> </nopassword> </Plugin::Authentication> METHODS
authenticate ( $c, $realm, $authinfo ) Try to log a user in. perl v5.14.2 2012-04-14 Catalyst::Plugin::Authentication::Credential::NoPassword(3pm)
Man Page