CustomStrengthOptionsConfig interface

對密碼策略實施的約束

簽名:

export interface CustomStrengthOptionsConfig 

特性

財產類型描述
最長長度數位最大密碼長度。無預設最大長度
最小長度數位最小密碼長度。有效值為 6 到 30
要求小寫布林值密碼必須包含小寫字符
要求非字母數字布林值密碼必須包含非字母數字字符
需要數字布林值密碼必須包含數字
要求大寫布林值密碼必須包含大寫字符

CustomStrengthOptionsConfig.maxLength

最大密碼長度。無預設最大長度

簽名:

maxLength?: number;

CustomStrengthOptionsConfig.minLength

最小密碼長度。有效值為 6 到 30

簽名:

minLength?: number;

CustomStrengthOptionsConfig.requireLowercase

密碼必須包含小寫字符

簽名:

requireLowercase?: boolean;

CustomStrengthOptionsConfig.requireNonAlphanumeric

密碼必須包含非字母數字字符

簽名:

requireNonAlphanumeric?: boolean;

CustomStrengthOptionsConfig.requireNumeric

密碼必須包含數字

簽名:

requireNumeric?: boolean;

CustomStrengthOptionsConfig.requireUppercase

密碼必須包含大寫字符

簽名:

requireUppercase?: boolean;