recaptcha

package
v0.0.0-...-93a054a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(c Info)

Configure adds the settings for Google reCAPTCHA

func Plugin

func Plugin() template.FuncMap

Plugin returns a map of functions that are usable in templates

func Verified

func Verified(r *http.Request) bool

Verified returns whether the Google reCAPTCHA was verified or not

Types

type Info

type Info struct {
	Enabled bool
	Secret  string
	SiteKey string
}

Info has the details for the Google reCAPTCHA

func ReadConfig

func ReadConfig() Info

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