Documentation ¶
Overview ¶
Package password provides password management through bcrypt.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPassword ¶
func NewPassword(options ...ConfigOption) auth.PasswordService
NewPassword returns a new password validator.
Types ¶
type ConfigOption ¶
type ConfigOption func(*Password)
ConfigOption configures the validator.
func WithMaxLength ¶
func WithMaxLength(length int) ConfigOption
WithMaxLength sets a maximum password length.
func WithMinLength ¶
func WithMinLength(length int) ConfigOption
WithMinLength sets a minimum password length.
type Password ¶
type Password struct {
// contains filtered or unexported fields
}
Password is a credential validator for password authentication.
Click to show internal directories.
Click to hide internal directories.