rsauth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 16 Imported by: 1

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)

func PushBySendGrid added in v1.0.5

func PushBySendGrid(pushMail, pushTitle, pushDesc, content 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