index

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: BSD-3-Clause Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenKey = stringutil.Rand(32)

TokenKey 加密用的密钥

Functions

This section is empty.

Types

type IndexAction

type IndexAction struct {
	actionutils.ParentAction
}

func (*IndexAction) RunGet

func (this *IndexAction) RunGet(params struct {
	From string

	Auth *helpers.UserShouldAuth
})

func (*IndexAction) RunPost

func (this *IndexAction) RunPost(params struct {
	Token    string
	Username string
	Password string
	OtpCode  string
	Remember bool

	Must *actions.Must
	Auth *helpers.UserShouldAuth
	CSRF *actionutils.CSRF
})

RunPost 提交

type InitPasswordAction added in v1.3.4

type InitPasswordAction struct {
	actionutils.ParentAction
}

func (*InitPasswordAction) Init added in v1.3.4

func (this *InitPasswordAction) Init()

func (*InitPasswordAction) RunGet added in v1.3.4

func (this *InitPasswordAction) RunGet(params struct{})

func (*InitPasswordAction) RunPost added in v1.3.4

func (this *InitPasswordAction) RunPost(params struct {
	Username string
	Password string

	Must *actions.Must
	CSRF *actionutils.CSRF
})

type OtpAction added in v0.6.4

type OtpAction struct {
	actionutils.ParentAction
}

func (*OtpAction) Init added in v0.6.4

func (this *OtpAction) Init()

func (*OtpAction) RunGet added in v0.6.4

func (this *OtpAction) RunGet(params struct {
	From     string
	Sid      string
	Remember bool
})

func (*OtpAction) RunPost added in v0.6.4

func (this *OtpAction) RunPost(params struct {
	Sid      string
	OtpCode  string
	Remember bool

	Must *actions.Must
	Auth *helpers.UserShouldAuth
})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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