mirror of
https://github.com/kataras/iris.git
synced 2026-01-04 02:37:14 +00:00
add remoteip and sitekey optional fields to hcaptcha middleware
as suggested on the kataras/hcaptcha package
This commit is contained in:
@@ -49,11 +49,8 @@ func New(secret string) context.Handler {
|
||||
}
|
||||
}
|
||||
|
||||
// SiteVerify accepts context and the secret key(https://www.google.com/recaptcha)
|
||||
//
|
||||
// and returns the google's recaptcha response, if `response.Success` is true
|
||||
//
|
||||
// then validation passed.
|
||||
// SiteVerify accepts context and the secret key(https://www.google.com/recaptcha) and
|
||||
// returns the google's recaptcha response, if `response.Success` is true then validation passed.
|
||||
//
|
||||
// Use `New` for middleware use instead.
|
||||
func SiteVerify(ctx *context.Context, secret string) (response Response) {
|
||||
|
||||
Reference in New Issue
Block a user