mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-03-06 19:35:37 +08:00
使用本地SID二次校验增强管理系统安全性
This commit is contained in:
14
internal/web/actions/default/login/init.go
Normal file
14
internal/web/actions/default/login/init.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package login
|
||||
|
||||
import (
|
||||
"github.com/iwind/TeaGo"
|
||||
)
|
||||
|
||||
func init() {
|
||||
TeaGo.BeforeStart(func(server *TeaGo.Server) {
|
||||
server.
|
||||
Prefix("/login").
|
||||
GetPost("/validate", new(ValidateAction)).
|
||||
EndAll()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user