gitea: code.gitea.io/gitea/modules/recaptcha Index | Files

package recaptcha

import "code.gitea.io/gitea/modules/recaptcha"

Index

Package Files

recaptcha.go

func Verify Uses

func Verify(response string) (bool, error)

Verify calls Google Recaptcha API to verify token

type Response Uses

type Response struct {
    Success     bool      `json:"success"`
    ChallengeTS time.Time `json:"challenge_ts"`
    Hostname    string    `json:"hostname"`
    ErrorCodes  []string  `json:"error-codes"`
}

Response is the structure of JSON returned from API

Package recaptcha imports 8 packages (graph) and is imported by 2 packages. Updated 2019-05-02. Refresh now. Tools for package owners.