From c5e34f798e4353d7bda4107890d21a5758739682 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Wed, 9 Oct 2019 10:40:12 +0300 Subject: [PATCH] Fix #758: reCAPTCHA should use secret for auth instead of key --- auth/json.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/json.go b/auth/json.go index 8d187750..3f551486 100644 --- a/auth/json.go +++ b/auth/json.go @@ -76,7 +76,7 @@ type ReCaptcha struct { // Ok checks if a reCaptcha responde is correct. func (r *ReCaptcha) Ok(response string) (bool, error) { body := url.Values{} - body.Set("secret", r.Key) + body.Set("secret", r.Secret) body.Add("response", response) client := &http.Client{}