http: auth: remove unnecessary fields in recaptcha validation

This commit is contained in:
Equim 2018-01-22 06:38:01 +08:00
parent 53240ef9dd
commit a314501fd8

View File

@ -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)