diff --git a/modules/recaptcha/recaptcha.go b/modules/recaptcha/recaptcha.go index fb9267c02..1354c7be4 100644 --- a/modules/recaptcha/recaptcha.go +++ b/modules/recaptcha/recaptcha.go @@ -25,6 +25,7 @@ type Response struct { const apiURL = "https://www.google.com/recaptcha/api/siteverify" +// Verify calls Google Recaptcha API to verify token func Verify(response string) (bool, error) { resp, err := http.PostForm(apiURL, url.Values{"secret": {setting.Service.RecaptchaSecret}, "response": {response}})