Dancer2::Plugin::FormValidator::Extension::Password - Dancer2 FormValidator extension for validating passwords.
version 0.82
package Validator { use Moo; with 'Dancer2::Plugin::FormValidator::Role::Profile'; sub profile { return { email => [qw(required email)], password => [qw(required password_robust)], }; }; }
This is beta version, not stable.
This extension provides validators for password verification for Dancer2::Plugin::FormValidator.
Dancer2::Plugin::FormValidator.
set plugins => { FormValidator => { session => { namespace => '_form_validator' }, forms => { login => 'Validator', }, extensions => { password => { provider => 'Dancer2::Plugin::FormValidator::Extension::Password', } } }, };
config.yml:
... plugins: FormValidator: session: namespace: '_form_validator' extensions: password: provider: 'Dancer2::Plugin::FormValidator::Extension::Password' ... ...
Field must be minimum 8 characters long and contain at least one letter and one number.
Field must be minimum 8 characters long and contain at least one letter, a number, and a special character.
must be minimum 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and a special character.
https://github.com/AlexP007/dancer2-plugin-formvalidator-extension-password.
Alexander Panteleev <alexpan at cpan dot org>.
This software is copyright (c) 2022 by Alexander Panteleev. 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 Dancer2::Plugin::FormValidator::Extension::Password, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer2::Plugin::FormValidator::Extension::Password
CPAN shell
perl -MCPAN -e shell install Dancer2::Plugin::FormValidator::Extension::Password
For more information on module installation, please visit the detailed CPAN module installation guide.