parent
4752758cf7
commit
ddb670ae1e
|
@ -76,7 +76,7 @@ type ReCaptcha struct {
|
||||||
// Ok checks if a reCaptcha responde is correct.
|
// Ok checks if a reCaptcha responde is correct.
|
||||||
func (r *ReCaptcha) Ok(response string) (bool, error) {
|
func (r *ReCaptcha) Ok(response string) (bool, error) {
|
||||||
body := url.Values{}
|
body := url.Values{}
|
||||||
body.Set("secret", r.Key)
|
body.Set("secret", r.Secret)
|
||||||
body.Add("response", response)
|
body.Add("response", response)
|
||||||
|
|
||||||
client := &http.Client{}
|
client := &http.Client{}
|
||||||
|
|
Loading…
Reference in New Issue