utotp

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TOTP

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

func NewTOTP

func NewTOTP(conf map[string]string) *TOTP

func (*TOTP) CompleteSignUp

func (*TOTP) CompleteSignUp(userID uint64, mfaConf map[string]string) error

func (*TOTP) InitSignUp

func (t *TOTP) InitSignUp(userID uint64, username string) (map[string]interface{}, error)

func (*TOTP) NewChallenge

func (t *TOTP) NewChallenge(userID uint64) (map[string]interface{}, error)

func (*TOTP) Registered

func (*TOTP) Registered(userID uint64) bool

func (*TOTP) Remove

func (*TOTP) Remove(userID uint64) error

func (*TOTP) SubmitChallenge

func (t *TOTP) SubmitChallenge(userID uint64, challengeResponse map[string]string) error

Jump to

Keyboard shortcuts

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