fix: recaptcha fixes, auth fixes and line endings

* http: auth: remove unnecessary fields in recaptcha validation

* http: render: never expose ReCaptchaSecret to public

* build: dos2unix build.sh
This commit is contained in:
Equim authored and Henrique Dias committed 2018-01-22 08:35:39 +00:00
1 parent 93566aceef
commit 9b8c2862e2
3 files changed
+21 -25

No files matched your search

+1 -4
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)