captcha

package
v0.0.0-...-9e43987 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCaptchaStore

func NewCaptchaStore(cache cache.CacheStore, expiration time.Duration) base64Captcha.Store

Types

type Captcha

type Captcha struct {
	// contains filtered or unexported fields
}

func NewCaptcha

func NewCaptcha(store base64Captcha.Store) *Captcha

func (*Captcha) GenerateDigitCaptcha

func (c *Captcha) GenerateDigitCaptcha() (id, b64s, answer string, err error)

func (*Captcha) GenerateStringCaptcha

func (c *Captcha) GenerateStringCaptcha() (id, b64s, answer string, err error)

func (*Captcha) Verify

func (c *Captcha) Verify(id, code string, clear bool) bool

Jump to

Keyboard shortcuts

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