batazor/go-auth

View on GitHub
utils/recaptcha/types.go

Summary

Maintainability
A
0 mins
Test Coverage
package recaptcha

import "time"

type Captcha struct {
    Captcha string `json:"captcha"`
}

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