Fix #758: reCAPTCHA should use secret for auth instead of key

This commit is contained in:
Paddy Xu 2019-10-09 10:40:12 +03:00
parent 4752758cf7
commit c5e34f798e

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{}