 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
    var ( ErrComplexity = errors.New("password not complex enough") ErrMinLength = errors.New("password not long enough") )
      View Source
      
  
var ErrIsPwned = errors.New("password has been pwned")
    Functions ¶
func BuildComplexityError ¶
func BuildComplexityError(locale translation.Locale) template.HTML
BuildComplexityError builds the error message when password complexity checks fail
func IsComplexEnough ¶
IsComplexEnough return True if password meets complexity settings
func IsErrIsPwnedRequest ¶ added in v1.22.0
Types ¶
type ErrIsPwnedRequest ¶ added in v1.22.0
type ErrIsPwnedRequest struct {
	// contains filtered or unexported fields
}
    func (ErrIsPwnedRequest) Error ¶ added in v1.22.0
func (err ErrIsPwnedRequest) Error() string
func (ErrIsPwnedRequest) Unwrap ¶ added in v1.22.0
func (err ErrIsPwnedRequest) Unwrap() error
 Click to show internal directories. 
   Click to hide internal directories.