Mojolicious::Plugin::Recaptcha

ReCaptcha plugin for Mojolicious framework
Download

Mojolicious::Plugin::Recaptcha Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dmitry Konstantinov
  • Publisher web site:
  • http://search.cpan.org/~dmitrynod/

Mojolicious::Plugin::Recaptcha Tags


Mojolicious::Plugin::Recaptcha Description

Mojolicious::Plugin::Recaptcha is a ReCaptcha plugin for Mojolicious framework.SYNOPSIS # Mojolicious::Lite plugin recaptcha => { public_key => '...', private_key => '...', lang => 'ru' }; # Mojolicious $self->plugin(recaptcha => { public_key => '...', private_key => '...', lang => 'ru', ssl => 1, # uses https Google URLs }); # template < form action="" method="post" > < %= recaptcha_html % > < input type="submit" value="submit" name="submit" / > < /form > # checking blocking way $self->recaptcha; unless ($self->stash('recaptcha_error')) { # all ok } # checking non-blocking way $self->render_later; $self->recaptcha(sub { my $ok = shift; if ($ok) { } else { warn $self->stash('recaptcha_error'); } # here you need call render $self->render; })Product's homepage


Mojolicious::Plugin::Recaptcha Related Software