Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Policies ¶
type Policies struct {
// contains filtered or unexported fields
}
Policies represents a password validation rules
type Validator ¶
Validator describes the interface providing a password Validate method
func NewPasswordPolicy ¶
func NewPasswordPolicy(minCharacters, minLowerCaseCharacters, minUpperCaseCharacters, minDigits, minSpecialCharacters int, bannedPasswordsList map[string]struct{}) Validator
NewPasswordPolicy returns a new NewPasswordPolicy instance
Click to show internal directories.
Click to hide internal directories.