verifyhelper

package
v0.0.0-...-b952f1b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VerifySuccess = iota + 1
	VerifyFail
	VerifyExpired
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeItem

type CodeItem struct {
	// contains filtered or unexported fields
}

type VerifyCode

type VerifyCode struct {
	// contains filtered or unexported fields
}

func NewVerifyCode

func NewVerifyCode(codeNum int, expire int64) *VerifyCode

func (*VerifyCode) GenValidateCode

func (v *VerifyCode) GenValidateCode() string

func (*VerifyCode) SendCode

func (v *VerifyCode) SendCode(from string, to []string, subject string, sender mail.MailSender) uint64

func (*VerifyCode) Verity

func (v *VerifyCode) Verity(mailItemId uint64, code string) int

Verity 验证码校验 0 正确 1 验证码失效 2 验证码错误

Jump to

Keyboard shortcuts

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