captcha

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 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 SetPhone added in v1.1.1

func SetPhone(phone, code string)

存储手机验证码

func SetStore

func SetStore(s base64Captcha.Store)

SetStore 设置store

func Verify

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

Verify 校验验证码

func VerifyPhone added in v1.1.1

func VerifyPhone(phone, code string, clear bool) bool

校验手机验证码

Types

This section is empty.

Jump to

Keyboard shortcuts

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