Catalyst::Controller::reCAPTCHA

Authenticate people and read books!
Download

Catalyst::Controller::reCAPTCHA Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Kieren Diment
  • Publisher web site:
  • http://search.cpan.org/~zarquon/

Catalyst::Controller::reCAPTCHA Tags


Catalyst::Controller::reCAPTCHA Description

Authenticate people and read books! Catalyst::Controller::reCAPTCHA is a Catalyst::Controller wrapper around Capatcha::reCAPTCHA. Provides a number of Private methods that deal with the recaptcha.CONFIGURATIONIn MyApp.pm (or equivalent in config file): __PACKAGE__->config->{recaptcha}->{pub_key} = '6LcsbAAAAAAAAPDSlBaVGXjMo1kJHwUiHzO2TDze'; __PACKAGE__->config->{recaptcha}->{priv_key} = '6LcsbAAAAAAAANQQGqwsnkrTd7QTGRBKQQZwBH-L';(the two keys above work for http://localhost unless someone hammers the reCAPTCHA server with failures, in which case the API keys get a temporary ban).METHODcaptcha_get : PrivateSets $c->stash->{recaptcha} to be the html form for the http://recaptcha.net/ reCAPTCHA service which can be included in your HTML form.METHODcaptcha_check : PrivateValidates the reCaptcha using Captcha::reCAPTCHA. sets $c->stash->{recaptcha_ok} which will be 1 on success. The action also returns true if there is success. This means you can do: if ( $c->forward(captcha_check) ) { # do something based on the reCAPTCHA passing }or alternatively: if ( $c->stash->{recaptcha_ok} ) { # do something based on the reCAPTCHA passing }If there's an error, $c->stash->{recaptcha_error} is set with the error string provided by Captcha::reCAPTCHA. Requirements: · Perl


Catalyst::Controller::reCAPTCHA Related Software