http: auth: remove unnecessary fields in recaptcha validation
This commit is contained in:
parent
53240ef9dd
commit
a314501fd8
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user