NAME

Dancer::Plugin::Captcha::AreYouAHuman - Easily integrate AreYouAHuman captcha into your Dancer applications

SYNOPSIS

 use Dancer::Plugin::Captcha::AreYouAHuman "is_a_human";

 # in config.yml
 plugins:
    Captcha::AreYouAHuman:
        publisher_key: BAADBEEFBAADBEEF
        scoring_key: BEEFBEEFBEEFBEEF

 # before template render
 human_checker true;
 template "file.tt";

 # In your template (TT2)
 [% are_you_a_human %]

 # In your validation code....
 if ( is_a_human ) {
     print "You're a human!\n";
 }
 else {
     print "Not a human\n":
 }

METHODS

human_checker

set ture when you need it.

but by default is false

Enable the directive "are_you_a_human" in the template

e.g.: human_checker true;

is_a_human

check the inputs are coming from a human visitor or not.

return value is 1 or 0 or undef

[% are_you_a_human %]

template directive to print out the validating html

TODO

 Add a real test suite.

BUGS

Please report any bugs or feature requests to bug-dancer-plugin-captcha-areyouahuman at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dancer::Plugin::Captcha::AreYouAHuman. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Dancer::Plugin::Captcha::AreYouAHuman

You can also look for information at:

SEE ALSO

AUTHOR

Michael Vu, <micvu at cpan.org>

ACKNOWLEDGEMENTS

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.