twofactor

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2018 License: CC0-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Authenticate

func Authenticate(token, secret string) (ok bool, err error)

Authenticate validates the initial token generated when configuring two-factor authentication for the first time.

func Email

func Email(address, secret string) error

Email delivers code to the specified address.

func Generate

func Generate(account, secret string) (string, error)

Generate will create a QR code in PNG format which will then be base64 encoded so it can traverse the wire to the front end.

func Secret

func Secret() string

Secret creates a random secret and then base32 encodes it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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