Skip to content

kerkerj/recaptcha

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is google golang module for google re-captcha.

Installation

go get github.com/kerkerj/recaptcha

Usage

Usage example can be found in example/main.go file.

import

import "github.com/kerkerj/recaptcha"

setup keys

// Setup siteKey and secretKey
sitekey := "{Your site key here}"
re := recaptcha.R{
	Secret: "{Your secret here}",
}

verify

// get recaptcha response, and then verify it.
challenge := r.FormValue("g-recaptcha-response")
isValid := re.Verify(challenge)

Documentation

Available on godocs: http://godoc.org/github.com/kerkerj/recaptcha

Google reCAPTCHA guides: https://developers.google.com/recaptcha/intro

About

Golang module for google re-captcha

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%