HTML::FormHandler::Field::Password(3pm)

HTML::FormHandler::Field::Password3pm

Password field

Version

version 0.40068

Overview

The password field has a default minimum length of 6, which can be easily changed:

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

It does not come with additional default checks, since password requirements vary so widely. There are a few constraints in the HTML::FormHandler::Types modules which could be used with this field: NoSpaces, WordChars, NotAllDigits. These constraints can be used in the field definitions 'apply':

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

You can add your own constraints in addition, of course.

If a password field is not required, then the field will be marked 'noupdate', to prevent a null from being saved into the database.

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. Does not check by default.

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7
  2. 8
  3. 9
  4. 10–11
  5. 12–13

Author

FormHandler Contributors - see HTML::FormHandler

From libhtml-formhandler-perl 0.40068-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.