captcha

package
v0.0.0-...-4274f6d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCaptchaAndShow

func CreateCaptchaAndShow(resp http.ResponseWriter) (string, []byte)

CreateCaptchaAndShow create a captcha and load it to the /captcha endpoint

func DoubleCheck

func DoubleCheck(xCaptcha string) bool

DoubleCheck returns a bool after verifying for the second time that The captcha has been well solved

func InitializeMemoryStorage

func InitializeMemoryStorage()

InitializeMemoryStorage create a new MemoryStorage object uses it as the default one and change the IsInitialize value

func VerifyCaptcha

func VerifyCaptcha(id string, digits string, delete bool) bool

VerifyCaptcha verify if a captcha is valid

Types

This section is empty.

Jump to

Keyboard shortcuts

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