mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-02-13 18:35:37 +08:00
登录页尝试使用csrf校验
This commit is contained in:
@@ -15,7 +15,9 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type IndexAction actions.Action
|
||||
type IndexAction struct {
|
||||
actionutils.ParentAction
|
||||
}
|
||||
|
||||
// 首页(登录页)
|
||||
|
||||
@@ -56,6 +58,7 @@ func (this *IndexAction) RunPost(params struct {
|
||||
Remember bool
|
||||
Must *actions.Must
|
||||
Auth *helpers.UserShouldAuth
|
||||
CSRF *actionutils.CSRF
|
||||
}) {
|
||||
params.Must.
|
||||
Field("username", params.Username).
|
||||
|
||||
Reference in New Issue
Block a user