recaptcha

package
v0.0.0-...-c6d32f8 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 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