captcha

package
v0.0.0-...-5207d60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Legacy cloudfare captcha

Index

Constants

View Source
const (
	CloudflareVerifyEndpoint string = "https://challenges.cloudflare.com/turnstile/v0/siteverify"
)

Variables

View Source
var DependencySet = wire.NewSet(
	NewCloudflareClient,
)

Functions

This section is empty.

Types

type CloudflareClient

type CloudflareClient struct {
	HTTPClient  *http.Client
	Credentials *config.Deprecated_CaptchaCloudflareCredentials
}

func (*CloudflareClient) Verify

func (c *CloudflareClient) Verify(token string, remoteip string) (*CloudflareVerificationResponse, error)

type CloudflareVerificationResponse

type CloudflareVerificationResponse struct {
	Success bool `json:"success"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL