fix #758: reCAPTCHA should use secret for verification (instead… (#875)

This commit is contained in:
Paddy Xu
2019-10-09 22:22:08 +01:00
committed by Henrique Dias
parent 4752758cf7
commit ddb670ae1e
+1 -1
View File
@@ -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{}