HTML::F...CAPTCHA(3)

πŸ“¦
version 1.00 Β· 2 versions
, in fedora 43

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