Kernel::System::DataValidation::Validator::PasswordPolicyRules

NAME

Kernel::System::DataValidation::Validator::PasswordPolicyRules – Validator that checks if password matches the given set of password policy rules.

PUBLIC INTERFACE

Provides a Check method, that will be called by the Kernel::System::DataValidation backend.

Check()

Checks if the given value is a valid password. The password policies which should be checked need to be passed as the Arguments parameter.

    my $True = $Validator->Check(
        Arguments => {
            PasswordRegExp                    => '[0-9]',
            PasswordNeedDigit                 => 1,
            PasswordMin2Characters            => 1,
            PasswordMin2Lower2UpperCharacters => 1,
            PasswordMinSize                   => 8,
        },
        Value => 'EinTest1234',
    );

    my $False = $Validator->Check(
        Arguments => {
            PasswordMin2Lower2UpperCharacters => 1,
            PasswordMinSize                   => 8,
        },
        Value => 'false',
    );
Scroll to Top