HTML::...ssword(3pm)

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

πŸ’… HTML::FormHandler::Field::Password(3pm)

okay bestie, so you're looking at <pink>HTML::...ssword(3pm)</pink> β€” that's the HTML::FormHandler::Field::Password manual page, straight out of the User Contributed Perl Documentation section. she's a perl manpage and she's here to explain the password field. let's go ✨


πŸŽ€ NAME πŸŽ€

HTML::FormHandler::Field::Password β€” it's the password field, periodt. πŸ”


🌸 VERSION 🌸

this baby is at version 0.40068 πŸ¦‹


✨ DESCRIPTION ✨

okay so here's the tea πŸ“ β€” the password field ships with a default minimum length of 6, and changing it is genuinely so easy:

has_field 'password' => ( type => 'Password', minlength => 7 );

that's it. that's the whole vibe check. πŸ’–

It does not come with any additional default checks, and honestly? valid. because password requirements vary so widely across apps that guessing would be a mess. πŸ™ˆ

That said, there are a few constraints chilling in the HTML::FormHandler::Types modules that you could use with this field: NoSpaces, WordChars, NotAllDigits. you can drop these into the field definition's 'apply' like this:

use HTML::FormHandler::Types ('NoSpaces', 'WordChars', 'NotAllDigits' );
...
has_field 'password' => ( type => 'Password',
       apply => [ NoSpaces, WordChars, NotAllDigits ],
);

and like β€” you can absolutely add your own constraints in addition, of course. custom is iconic, no cap. πŸ‘‘

🫢 big one: if a password field is not required, then the field will be marked 'noupdate', to prevent a null from being saved into the database. she's protecting your DB. respect her.

🌈 ne_username 🌈

set this attribute to the name of your username field (default 'username') if you want to check that the password is not the same as the username. because password = username is a crime and she's not letting it slide. 😭

It does not check by default. so you gotta opt in, iykyk.


πŸ‘‘ AUTHOR πŸ‘‘

FormHandler Contributors β€” see HTML::FormHandler πŸ’œ


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. slay. πŸŽ€


✨ and that's the page, bestie ✨ β€” filed under perl v5.34.0, dated 2022-03-25, in classic HTML::...ssword(3pm) fashion. go forth and hash responsibly πŸ’…πŸ”₯

πŸ“¦ where this page comes from