import "code.gitea.io/gitea/modules/recaptcha"
Verify calls Google Recaptcha API to verify token
ErrorCode is a reCaptcha error
Error fulfills the error interface
String fulfills the Stringer interface
type Response struct { Success bool `json:"success"` ChallengeTS string `json:"challenge_ts"` Hostname string `json:"hostname"` ErrorCodes []ErrorCode `json:"error-codes"` }
Response is the structure of JSON returned from API
Package recaptcha imports 9 packages (graph) and is imported by 8 packages. Updated 2020-12-13. Refresh now. Tools for package owners.