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
}
Click to show internal directories.
Click to hide internal directories.