verification

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Phone = iota
	Mail
	Unknown
)

Variables

View Source
var LuosimaoErr = errors.New("人机识别验证失败")

Functions

func GenerateCode

func GenerateCode() string

func LuosimaoVerify

func LuosimaoVerify(reqURL, apiKey, response string) error

LuosimaoVerify 对前端的验证码进行验证

func PhoneOrMail

func PhoneOrMail(input string) int

Types

type LuosimaoResult

type LuosimaoResult struct {
	Error int    `json:"error"`
	Res   string `json:"res"`
	Msg   string `json:"msg"`
}

func (*LuosimaoResult) CheckError

func (l *LuosimaoResult) CheckError() error

Directories

Path Synopsis
auth
jwt

Jump to

Keyboard shortcuts

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