resetpassword

package
v0.4.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(name string)

func GenResetPasswordURL

func GenResetPasswordURL(username string, typ string, account string) string

func Open

func Open(name string)

func Register

func Register(recvType *RecvType)

func Unregister

func Unregister(name string)

Types

type GetAccount

type GetAccount func(c echo.Context, m *modelCustomer.Customer) (string, error)

type OnChange

type OnChange func(c echo.Context, m *modelCustomer.Customer) error

type RecvType

type RecvType struct {
	On             bool       // 开关
	Key            string     // Key
	Label          string     // 标签
	Placeholder    string     // 占位文本
	InputName      string     // 输入项名称
	Validate       Validate   `json:"-" xml:"-"` // 验证发送账号
	Send           Send       `json:"-" xml:"-"` // 发送
	OnChangeBefore OnChange   `json:"-" xml:"-"` // 更改密码前的处理
	OnChangeAfter  OnChange   `json:"-" xml:"-"` // 当密码成功更改后的处理
	GetAccount     GetAccount `json:"-" xml:"-"` // 收信账号
}

func Get

func Get(name string) *RecvType

func List

func List() []*RecvType

type Send

type Send func(c echo.Context, m *modelCustomer.Customer, account string) error

type Validate

type Validate func(c echo.Context, fieldName string, fieldValue string) error

Jump to

Keyboard shortcuts

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