Skip to content

SiPasswordStrengthDirective documentation

selector
[siPasswordStrength]

Input Properties

NameTypeDefaultDescription
siPasswordStrength
PasswordPolicy{ minLength: 8, uppercase: true, lowercase: true, digits: true, special: true }Define Siemens password strength.

Output Properties

NameTypeDescription
passwordStrengthChanged
(number | void)Output callback event called when the password changes. The number indicated the number of rules which still can be met. ( -2 --\​> 2 rules are still unmet, 0 --\​> all met)

Types Documentation

Properties
Whether to allow whitespaces. By default whitespaces are not allowed.
allowWhitespace?: boolean
Define if digits are required in password.
digits: boolean
Define if lowercase characters are required in password.
lowercase: boolean
Define minimal number of characters.
minLength: number
Minimum required policies for valid password. When set to a number greater than 0, defines the number of policies that must be met for the password to be valid. E.g. when set to 3 and the policies uppercase/lowercase/digits/special are all set and the password contains 3 out of these four, the password will be valid.
minRequiredPolicies?: number
Define if special characters are required in password.
special: boolean
Define if uppercase characters are required in password.
uppercase: boolean

Except where otherwise noted, content on this site is licensed under MIT License.