auth

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEmail

func InitEmail(host, from, pwd string)

func PushByEmail

func PushByEmail(pushMail, pushTitle, pushDesc, content string, fCallBack func(error)) (string, error)

Types

type GoogleAuth

type GoogleAuth struct {
}

Google Authenticator

func NewGoogleAuth

func NewGoogleAuth() *GoogleAuth

func (*GoogleAuth) GetQrcode

func (this *GoogleAuth) GetQrcode(user, secret string) string

func (*GoogleAuth) GetSecret

func (this *GoogleAuth) GetSecret() string

func (*GoogleAuth) VerifyCode

func (this *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