totp

package
v8.0.8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: GPL-3.0 Imports: 9 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)

获取动态码

func (*GoogleAuth) GetQrcode

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

获取动态码二维码内容

func (*GoogleAuth) GetQrcodeUrl

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

获取动态码二维码图片地址,这里是第三方二维码api

func (*GoogleAuth) GetSecret

func (ga *GoogleAuth) GetSecret() string

获取秘钥

func (*GoogleAuth) VerifyCode

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

验证动态码

Jump to

Keyboard shortcuts

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