captcha

package
v1.3.23 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DriverDigitFunc

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

func DriverStringFunc

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

func NewCacheStore

func NewCacheStore(cache storage.AdapterCache, 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