password

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AuthServiceName = `password`

Variables

View Source
var ErrPasswordMismatch = errors.New("password mismatch")

Functions

This section is empty.

Types

type Password

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

func NewBasicAuth

func NewBasicAuth(auth authentication.Repository, account account.Repository) *Password

func (*Password) Login

func (b *Password) Login(ctx context.Context, identifier string, password string) (*account.Account, error)

func (*Password) Register

func (b *Password) Register(ctx context.Context, identifier string, password string) (*account.Account, error)

Jump to

Keyboard shortcuts

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