userauthn

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMiddleware

func NewMiddleware(log *log.Logger) muxhttp.Middleware

func PasswordMatch

func PasswordMatch(pvi PasswordVeriferInterface) error

func RegisterSvc

func RegisterSvc(db *sqlx.DB, rt *muxhttp.Router)

Types

type PasswordVeriferInterface

type PasswordVeriferInterface interface {
	CompareHashAndPassword() error
}

type PasswordVerifier

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

func (PasswordVerifier) CompareHashAndPassword

func (pv PasswordVerifier) CompareHashAndPassword() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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