Documentation ¶
Overview ¶
Package recaptcha handles reCaptcha (http://www.google.com/recaptcha) form submissions
This package is designed to be called from within an HTTP server or web framework which offers reCaptcha form inputs and requires them to be evaluated for correctness
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Recaptcha ¶
type Recaptcha struct {
RecaptchaPrivateKey string
}
func (*Recaptcha) Check ¶
func (r *Recaptcha) Check(remoteip, response string) (*RecaptchaResponse, error)
Check uses the client ip address, the challenge code from the reCaptcha form, and the client's response input to that challenge to determine whether or not the client answered the reCaptcha input question correctly.
Directories ¶
Path | Synopsis |
---|---|
example.go A simple HTTP server which presents a reCaptcha input form and evaulates the result, using the github.com/dpapathanasiou/go-recaptcha package.
|
example.go A simple HTTP server which presents a reCaptcha input form and evaulates the result, using the github.com/dpapathanasiou/go-recaptcha package. |
Click to show internal directories.
Click to hide internal directories.