HTML::...Captcha(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

πŸŽ€ NAME πŸŽ€

Okay bestie, welcome to the HTML::...Captcha(3pm) page β€” it’s filed under User Contributed Perl Documentation, and the actual module is HTML::FormHandler::Field::Captcha β€” captcha field with GD::SecurityImage. Iconic little captcha situation, no cap πŸ’….

πŸ’… VERSION πŸ’…

The version line says version 0.40068. Slay.

✨ SYNOPSIS ✨

This is a Captcha class using GD::SecurityImage. It requires that three methods be available from a form object, and these are the exact method lines it gives you:

$self->form->get_captcha;
$self->form->set_captcha;

The page says β€œthree methods” but shows these two lines β€” I’m just reporting the tea exactly as written πŸ«–.

If you’re on Catalyst with the Catalyst session plugin, you can use this field in a form by pulling in HTML::FormHandler::TraitFor::Captcha:

package MyApp::Form::Post;
use HTML::FormHandler::Moose;
with 'HTML::FormHandler::TraitFor::Captcha';

You can set these attributes on the 'captcha' field:

  • height
  • width
  • scramble
  • lines
  • gd_font

Example, because examples are literally the bestie behavior:

has 'captcha' => ( height => '24', width => '70' );

🫢 AUTHOR 🫢

FormHandler Contributors - see HTML::FormHandler β€” group project energy, love that for them.

This software is copyright (c) 2017 by Gerda Shank.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Cute sign-off time: this page comes from perl v5.34.0, dated 2022-03-25, and the manual name is HTML::...Captcha(3pm). Byeee bestie πŸ’–βœ¨

πŸ“¦ where this page comes from