From ddb670ae1e5d47b480639bdf5d05dc61d57ae7f5 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Thu, 10 Oct 2019 00:22:08 +0300 Subject: [PATCH] =?UTF-8?q?fix=20#758:=20reCAPTCHA=20should=20use=20secret?= =?UTF-8?q?=20for=20verification=20(instead=E2=80=A6=20(#875)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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{}