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

This commit is contained in:
Paddy Xu 2019-10-10 00:22:08 +03:00 committed by Henrique Dias
parent 4752758cf7
commit ddb670ae1e
1 changed files with 1 additions and 1 deletions

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