mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-05-20 04:05:19 +08:00
安全设置增加“检查客户端指纹"和"检查客户端区域"选项
This commit is contained in:
@@ -79,6 +79,9 @@ func (this *IndexAction) RunPost(params struct {
|
||||
DenySearchEngines bool
|
||||
DenySpiders bool
|
||||
|
||||
CheckClientFingerprint bool
|
||||
CheckClientRegion bool
|
||||
|
||||
DomainsJSON []byte
|
||||
|
||||
Must *actions.Must
|
||||
@@ -150,6 +153,10 @@ func (this *IndexAction) RunPost(params struct {
|
||||
// 允许记住登录
|
||||
config.AllowRememberLogin = params.AllowRememberLogin
|
||||
|
||||
// Cookie检查
|
||||
config.CheckClientFingerprint = params.CheckClientFingerprint
|
||||
config.CheckClientRegion = params.CheckClientRegion
|
||||
|
||||
err = configloaders.UpdateSecurityConfig(config)
|
||||
if err != nil {
|
||||
this.ErrorPage(err)
|
||||
|
||||
Reference in New Issue
Block a user