pwvalidate

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDisabledError

type AccountDisabledError struct{}

func (*AccountDisabledError) Error

func (ade *AccountDisabledError) Error() string

type AccountLockedError

type AccountLockedError struct{}

func (*AccountLockedError) Error

func (ale *AccountLockedError) Error() string

type IPBlockedError

type IPBlockedError struct{}

func (*IPBlockedError) Error

func (ipbe *IPBlockedError) Error() string

type InvalidUsernamePasswordError

type InvalidUsernamePasswordError struct {
	AccountRemainingBeforeLocked int
	IPRemainingBeforeLocked      int
}

func (*InvalidUsernamePasswordError) Error

func (iupe *InvalidUsernamePasswordError) Error() string

type PasswordValidator

type PasswordValidator interface {
	Validate(ctx context.Context, username string, password string, sourceIP string) (*user.User, error)
}

type PasswordValidatorError

type PasswordValidatorError interface {
	error
	// contains filtered or unexported methods
}

type ValidatorImpl

type ValidatorImpl struct {
	// contains filtered or unexported fields
}

func NewValidator

func NewValidator(db db.DB, ll loginlimit.LoginLimiter) *ValidatorImpl

func (*ValidatorImpl) Validate

func (v *ValidatorImpl) Validate(ctx context.Context, username string, password string, sourceIP string) (*user.User, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL