Dancer-Plugin-reCAPTCHA
view release on metacpan or search on metacpan
lib/Dancer/Plugin/reCAPTCHA.pm view on Meta::CPAN
$conf->{ public_key },
{ %options }
);
};
register recaptcha_check => sub {
my ( $response ) = @_;
my $conf = plugin_setting();
return $rc->verify(
$conf->{ private_key },
$response,
request->remote_address,
);
};
register_plugin;
1;
__END__
lib/Dancer/Plugin/reCAPTCHA.pm view on Meta::CPAN
=head1 VERSION
version 0.91
=head1 SYNOPSIS
# In your config.yml
plugins:
reCAPTCHA:
public_key: "public key goes here"
private_key: "private key goes here"
theme: "dark"
type: "image"
size: "normal"
# In your Dancer app...
use Dancer::Plugin::reCAPTCHA;
# In your form display route...
return template 'accounts/create', {
recaptcha => recaptcha_display(),
( run in 0.275 second using v1.01-cache-2.11-cpan-a5abf4f5562 )