HTML::...::Equal(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– NAME πŸ’–

HTML::FormFu::Constraint::Equal β€” the Multi-field Equality Constraint, bestie. It's giving "these two fields better match or else" energy. πŸ‘‘


✨ VERSION ✨

version 2.07 β€” yeah she's been around, she's iconic, she's stable. πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

okay so here's the vibe, literally just drop it in your form config like this:

- type: Password
  name: password
  constraints:
  - type: Equal
    others: repeat_password
- type: Password
  name: repeat_password

see how password is checking up on repeat_password? that's the whole plot. 🫢


🌸 DESCRIPTION 🌸

So the tea is: every single field you name inside others (which, btw, comes from HTML::FormFu::Role::Constraint::Others) has to have a value equal to the field this constraint is attached to. No cap. If they don't match, it's a no from her. πŸ’…


πŸ’œ SEE ALSO πŸ’œ

  • She's a sub-class of, and inherits methods from, HTML::FormFu::Role::Constraint::Others and HTML::FormFu::Constraint β€” so like, family tree matters, iykyk. 🌈
  • HTML::FormFu β€” the main character, obviously. ⭐

πŸ‘‘ AUTHOR πŸ‘‘

Carl Franks cfranks@cpan.org β€” yeah, the original. Respect. 🫑


πŸŽ€ LICENSE πŸŽ€

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. fr fr, go wild, it's free. πŸ’–


🧚 AUTHOR 🧚

Carl Franks <cpan@fireartist.com> β€” same legend, different address. Two entries, one icon. ✨


This software is copyright (c) 2018 by Carl Franks.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. πŸ“


lowkey a whole legal moment but we love a permissive license bestie πŸ’€

okay that's the whole page, mwah, go validate some matching passwords. πŸ’…βœ¨ This was perl v5.28.1, dated 2019-01-12, from the HTML::...::Equal(3pm) manual β€” and yes the manual name is literally HTML::...::Equal(3pm), she's mysterious like that. bye bestie! πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from