Data::MuForm::Field::Password - password field
version 0.05
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.
Gerda Shank
This software is copyright (c) 2018 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.
To install Data::MuForm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::MuForm
CPAN shell
perl -MCPAN -e shell install Data::MuForm
For more information on module installation, please visit the detailed CPAN module installation guide.