From a314501fd804bcdb0223b4220a73e67bf02c2e3e Mon Sep 17 00:00:00 2001 From: Equim Date: Mon, 22 Jan 2018 06:38:01 +0800 Subject: [PATCH] http: auth: remove unnecessary fields in recaptcha validation --- http/auth.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/http/auth.go b/http/auth.go index cc6f9977..fbe8f3f8 100644 --- a/http/auth.go +++ b/http/auth.go @@ -38,10 +38,7 @@ func reCaptcha(secret string, response string) (bool, error) { } var data struct { - Success bool `json:"success"` - ChallengeTS time.Time `json:"challenge_ts"` - Hostname string `json:"hostname"` - ErrorCodes interface{} `json:"error-codes"` + Success bool `json:"success"` } err = json.NewDecoder(resp.Body).Decode(&data)