Kernel::System::DataValidation::Validator::PasswordConfirmation

NAME

Kernel::System::DataValidation::Validator::PasswordConfirmation – Validator that verifies that a value matches given Password.

PUBLIC INTERFACE

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

Check()

Checks if the given values are identical.

    my $True = $Validator->Check(
        Value => {
            NewPassword             => 'somepasswd',
            NewPasswordConfirmation => 'somepasswd',
        },
    );

    my $False = $Validator->Check(
        Value => {
            NewPassword             => 'somepassword',
            NewPasswordConfirmation => 'anotherthing',
        },
    );
Scroll to Top