captchas

package
v0.0.0-...-851e7b8 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Captcha

type Captcha struct {
}

Captcha can create and validate a captcha

func (*Captcha) Create

func (c *Captcha) Create() (map[string]interface{}, error)

Create captcha 生成验证码 验证码生成将返回id 和 验证码数据 如果图形验证码生成失败则会返回错误信息

func (*Captcha) Verify

func (c *Captcha) Verify(captchaID, answer string) bool

Verify captcha 校验验证码是否正确 需要传入验证码id和用户的输入答案

Jump to

Keyboard shortcuts

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