GitHub

DaffFormsPasswordValidatorComboConfig

The combo config describes a password requirement that does not specify hardcoded requirements for each character class but instead that a certain number of any of the character characterClasses are present in the password value.

import { DaffFormsPasswordValidatorComboConfig } from '@daffodil/forms'
interface DaffFormsPasswordValidatorComboConfig {
  numClasses: 1 | 2 | 3 | 4
  occurences: number
}

Properties

Name Type Description
numClasses 1 | 2 | 3 | 4

How many of the 4 character characterClasses should be present.

occurences number

How many occurences of a particular class need to be present for that class to count towards the characterClasses total.