captcha

package
v2.0.53 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverDigitFunc

func DriverDigitFunc() (id, b64s, answer string, err error)

func DriverStringFunc

func DriverStringFunc() (id, b64s, answer string, err error)

func NewCacheStore

func NewCacheStore(cache cacheLib.ICache, prefix string, expiration int) base64Captcha.Store

NewCacheStore returns a new standard memory store for captchas with the given collection threshold and expiration time (duration). The returned store must be registered with SetCustomStore to replace the default one.

func SetStore

func SetStore(s base64Captcha.Store)

SetStore 设置store

func Verify

func Verify(id, code string, clear bool) bool

Verify 校验验证码

Types

This section is empty.

Jump to

Keyboard shortcuts

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