NAME
Data::MuForm::Field::Password - password field
VERSION
version 0.02
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 Data::MuForm::Types modules which could be used with this field: NoSpaces, WordChars, NotAllDigits. These constraints can be used in the field definitions 'apply':
use Data::MuForm::Types ('NoSpaces', 'WordChars', 'NotAllDigits' );
...
has_field 'password' => ( type => 'Password',
apply => [ NoSpaces, WordChars, NotAllDigits ],
);
If a password field is not required and nothing has been submitted, then the field will be marked 'no_update' to keep from overwriting a password in the database will a null.
AUTHOR
Gerda Shank
COPYRIGHT AND LICENSE
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.