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()
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 提交
Click to show internal directories.
Click to hide internal directories.