登录页尝试使用csrf校验

This commit is contained in:
刘祥超
2020-10-25 11:22:11 +08:00
parent 7a5bcf7757
commit a6e2453aa8
11 changed files with 236 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package nodes
import (
"github.com/TeaOSLab/EdgeAdmin/internal/configs"
"github.com/TeaOSLab/EdgeAdmin/internal/errors"
"github.com/iwind/TeaGo"
"github.com/iwind/TeaGo/Tea"
@@ -25,6 +26,7 @@ func NewAdminNode() *AdminNode {
func (this *AdminNode) Run() {
// 启动管理界面
secret := this.genSecret()
configs.Secret = secret
// 检查server配置
err := this.checkServer()