HTML::F...CAPTCHA(3)
HTML::FormFu::Element::reCAPTCHA π
okay bestie, so this page is the manual for HTML::FormFu::Element::reCAPTCHA, and honestly? its whole job is answering the eternal question: are you human πβ¨
β¨ NAME β¨
HTML::FormFu::Element::reCAPTCHA β the "Are you human" tester! π§π
πΈ SYNOPSIS πΈ
---
elements:
- type: reCAPTCHA
name: recaptcha
public_key: $recaptcha_net_public_key
private_key: $recaptcha_net_private_key
π DESCRIPTION π
So basically this is a lil wrapper around Captcha::reCAPTCHA. π«Ά
Here's the tea tho: the reCAPTCHA fields aren't added to the form as "real" FormFu fields β so the values are never available via params, etc. no cap. π
You can still check that the reCAPTCHA verified correctly, using the usual methods: submitted_and_valid in HTML::FormFu or has_errors in HTML::FormFu. π
This element automatically adds HTML::FormFu::Constraint::reCAPTCHA to itself β and bestie, you should never add it yourself. it's giving "i got this, don't touch it". π
And even though this is a subclass of HTML::FormFu::Element::Multi, you should not call element() or elements() to try to add other fields β think of the reCAPTCHA element as a total black box. π main character energy, closed set, no guests. β¨
π METHODS π
π name
Required. Even though it's not visibly used for anything, you must give this field a name for the reCAPTCHA constraint to work correctly. fr fr, don't skip it. π
π public_key
Arguments: $public_key
Required. Obtained from <http://recaptcha.net>. π
π private_key
Arguments: $private_key
Required. Obtained from <http://recaptcha.net>. π
π ssl
Default Value: 'auto'.
Valid Values: '1', '0' or 'auto'
Whether to load the recaptcha.net files via "http" or "https". π
If set to "auto", it will use "https" urls if the current page is running under ssl, otherwise it will use "http" urls. auto-pilot, slay. π¦
π recaptcha_options
Arguments: \%options
See the recaptcha.net API for details of valid options. π
recaptcha_options:
lang: de
theme: white
π constraint_args
Arguments: \%constraint_args
Options that will be passed to the HTML::FormFu::Constraint::reCAPTCHA that is automatically added for you. π
---
elements:
- type: reCAPTCHA
name: recaptcha
constraint_args:
message: 'custom error message'
π¦ SEE ALSO π¦
Is a sub-class of, and inherits methods from HTML::FormFu::Role::Element::Field, HTML::FormFu::Element::Multi, HTML::FormFu::Element::Block, HTML::FormFu::Element π
HTML::FormFu
β AUTHOR β
Carl Franks, cfranks@cpan.org π
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. periodt. π
and that's a wrap, bestie π«Ά this page came from perl v5.42.0, dated 2025-07-25, and you found it under HTML::F...CAPTCHA(3) β go forth and verify some humans β¨π
π¦ where this page comes from
- fedora 43: perl-HTML-FormFu-Element-reCAPTCHA 1.00-33.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms