recaptcha

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error() []string

Error returns errors occurred in last re-captcha validation attempt

func Verify

func Verify(req http.Request) bool

Verify method, verifies if current request have valid re-captcha response and returns true or false This method also records any errors in validation. These errors can be received by calling LastError() method.

Types

type Recaptcha

type Recaptcha struct {
	Secret string
	// contains filtered or unexported fields
}

Recaptcha is a prioritized configuration registry.

func New

func New() *Recaptcha

New returns an initialized recaptcha instance.

Jump to

Keyboard shortcuts

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