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

@ -39,9 +39,6 @@ func reCaptcha(secret string, response string) (bool, error) {
var data struct { var data struct {
Success bool `json:"success"` Success bool `json:"success"`
ChallengeTS time.Time `json:"challenge_ts"`
Hostname string `json:"hostname"`
ErrorCodes interface{} `json:"error-codes"`
} }
err = json.NewDecoder(resp.Body).Decode(&data) err = json.NewDecoder(resp.Body).Decode(&data)