verification

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 6 Imported by: 1

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