Gerda Shank > HTML-FormHandler-0.40021 > HTML::FormHandler::Field::Password

Download:
HTML-FormHandler-0.40021.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View/Report Bugs
Module Version: 0.04   Source   Latest Release: HTML-FormHandler-0.40056

NAME ^

HTML::FormHandler::Field::Password - password field

VERSION ^

version 0.40021

DESCRIPTION ^

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.

AUTHOR ^

FormHandler Contributors - see HTML::FormHandler

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2013 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.

syntax highlighting: