mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-03 20:40:26 +08:00
登录页尝试使用csrf校验
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user