NAME Mojolicious::Plugin::Recaptcha - ReCaptcha plugin for Mojolicious framework VERSION 0.63 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
# set reCaptcha widget language from template # 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; }) Internationalisation support * English by default (en) * Dutch (nl) * French (fr) * German (de) * Portuguese (pt) * Russian (ru) * Spanish (es) * Turkish (tr) Options Plugin support all recaptcha options: