Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 IsPwned ¶
IsPwned checks whether a password has been pwned If a password has not been pwned, no error is returned.
Types ¶
type ErrIsPwnedRequest ¶
type ErrIsPwnedRequest struct {
// contains filtered or unexported fields
}
func (ErrIsPwnedRequest) Error ¶
func (err ErrIsPwnedRequest) Error() string
func (ErrIsPwnedRequest) Unwrap ¶
func (err ErrIsPwnedRequest) Unwrap() error
Source Files
¶
- password.go
- pwn.go
Click to show internal directories.
Click to hide internal directories.