package
Version:
v2.18.0
Opens a new window with list of versions in this module.
Published: Dec 22, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Policies represents a password validation rules
Validate implements a password validation regarding the policy
type Validator interface {
Validate(str string) error
}
Validator describes the interface providing a password Validate method
func NewPasswordPolicy(disabled bool, minCharacters, minLowerCaseCharacters, minUpperCaseCharacters, minDigits, minSpecialCharacters int, bannedPasswordsList map[string]struct{}) Validator
NewPasswordPolicy returns a new NewPasswordPolicy instance
Source Files
¶
Click to show internal directories.
Click to hide internal directories.