Class

PasswordValidator

PasswordValidator(errorMessageopt)

Constructor

# new PasswordValidator(errorMessageopt)

Handles Password Validation

Parameters:
Name Type Attributes Description
errorMessage string <optional>

defaults to DEFAULT_ERROR_MESSAGES#PASSWORD

View Source validation/Validators/PasswordValidator.ts, line 11

Extends

Methods

# hasErrors(value, optionsopt) → {string|undefined}

Validates a model

Parameters:
Name Type Attributes Default Description
value string
options PatternValidatorOptions <optional>
{}
Overrides:
See:

View Source validation/Validators/PasswordValidator.ts, line 69

If no pattern is provided in the options

Error
string | undefined