captcha

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MPL-2.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 Turnstile

type Turnstile struct {
	SiteKey   string        `long:"site-key" env:"SITE_KEY" description:"Widget access key"`
	SecretKey string        `long:"secret-key" env:"SECRET_KEY" description:"Server side secret key"`
	Timeout   time.Duration `long:"timeout" env:"TIMEOUT" description:"Validation request timeout" default:"3s"`
}

func (*Turnstile) Embed

func (widget *Turnstile) Embed() template.HTML

func (*Turnstile) Validate

func (widget *Turnstile) Validate(form *http.Request) bool

Jump to

Keyboard shortcuts

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