The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Dancer2::Plugin::FormValidator::Extension::Password - Dancer2 FormValidator extension for validating passwords.

VERSION

version 0.82

SYNOPSIS

package Validator {
use Moo;
sub profile {
return {
email => [qw(required email)],
password => [qw(required password_robust)],
};
};
}

DISCLAIMER

This is beta version, not stable.

DESCRIPTION

This extension provides validators for password verification for Dancer2::Plugin::FormValidator.

Dancer2::Plugin::FormValidator.

CONFIGURATION

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'
...
...

Validators

password_simple

Field must be minimum 8 characters long and contain at least one letter and one number.

password_robust

Field must be minimum 8 characters long and contain at least one letter, a number, and a special character.

password_hard

must be minimum 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and a special character.

SOURCE CODE REPOSITORY

https://github.com/AlexP007/dancer2-plugin-formvalidator-extension-password.

AUTHOR

Alexander Panteleev <alexpan at cpan dot org>.

LICENSE AND COPYRIGHT

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.