index

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenSalt = stringutil.Rand(32)

Functions

This section is empty.

Types

type CheckOTPAction

type CheckOTPAction struct {
	actionutils.ParentAction
}

检查是否需要OTP

func (*CheckOTPAction) Init

func (this *CheckOTPAction) Init()

func (*CheckOTPAction) RunPost

func (this *CheckOTPAction) RunPost(params struct {
	Username string

	Must *actions.Must
})

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 提交

Jump to

Keyboard shortcuts

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