Documentation ¶
Overview ¶
Package hcaptcha handles hCaptcha (https://hcaptcha.com) form submissions
This package is designed to be called from within an HTTP server or web framework which offers hCaptcha form inputs and requires them to be evaluated for correctness
Edit the hcaptchaPrivateKey constant before building and using
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmWithContext ¶
func ConfirmWithContext(ctx context.Context, response string, ip string) (result bool, score float32, err error)
ConfirmWithContext is the public interface function. It calls check, which the client ip address, the challenge code from the hCaptcha form, and the client's response input to that challenge to determine whether or not the client answered the hCaptcha input question correctly. It returns a boolean value indicating whether or not the client answered correctly.