recaptcha

package
v0.0.0-...-58914f8 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c RecaptchaInfo)

Configure adds the settings for Google reCAPTCHA

func Verified

func Verified(r *http.Request) bool

Verified returns whether the Google reCAPTCHA was verified or not

Types

type RecaptchaInfo

type RecaptchaInfo struct {
	Enabled bool
	Secret  string
	SiteKey string
}

RecaptchaInfo has the details for the Google reCAPTCHA

func ReadConfig

func ReadConfig() RecaptchaInfo

ReadConfig returns the settings for Google reCAPTCHA

Jump to

Keyboard shortcuts

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