mfa

package
v8.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoogleAuth

type GoogleAuth struct {
}

func NewGoogleAuth

func NewGoogleAuth() *GoogleAuth

func (*GoogleAuth) GetCode

func (ga *GoogleAuth) GetCode(secret string) (string, error)

Get Dynamic Code

func (*GoogleAuth) GetQrcode

func (ga *GoogleAuth) GetQrcode(user, secret, stype string) string

Get Dynamic Code QR Code Content

func (*GoogleAuth) GetSecret

func (ga *GoogleAuth) GetSecret() string

获取秘钥

func (*GoogleAuth) VerifyCode

func (ga *GoogleAuth) VerifyCode(secret, code string) (bool, error)

Verify Dynamic Code

Jump to

Keyboard shortcuts

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