thirdparty

package
v0.0.0-...-ccbecfa Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func G2FAToken

func G2FAToken(secret string, interval int64) (string, error)

func G2FAToken30Sec

func G2FAToken30Sec(secret string) (string, error)

Types

type TRecaptcha

type TRecaptcha struct {
	Secret string
}

func (*TRecaptcha) Check

func (self *TRecaptcha) Check(response string) bool

type TRecaptchaResponse

type TRecaptchaResponse struct {
	Success     bool      `json:"success"`
	Score       float64   `json:"score"`
	Action      string    `json:"action"`
	ChallengeTS time.Time `json:"challenge_ts"`
	Hostname    string    `json:"hostname"`
	ErrorCodes  []string  `json:"error-codes"`
}

Jump to

Keyboard shortcuts

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