mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-04 02:40:25 +08:00
修复CSRF可能导致访问控制自动保存失败的问题
This commit is contained in:
@@ -61,7 +61,6 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
AuthJSON []byte
|
AuthJSON []byte
|
||||||
|
|
||||||
Must *actions.Must
|
Must *actions.Must
|
||||||
CSRF *actionutils.CSRF
|
|
||||||
}) {
|
}) {
|
||||||
defer this.CreateLogInfo("修改Web %d 的鉴权设置", params.WebId)
|
defer this.CreateLogInfo("修改Web %d 的鉴权设置", params.WebId)
|
||||||
|
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
AuthJSON []byte
|
AuthJSON []byte
|
||||||
|
|
||||||
Must *actions.Must
|
Must *actions.Must
|
||||||
CSRF *actionutils.CSRF
|
|
||||||
}) {
|
}) {
|
||||||
defer this.CreateLogInfo("修改Web %d 的认证设置", params.WebId)
|
defer this.CreateLogInfo("修改Web %d 的认证设置", params.WebId)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
<div class="right-box with-menu">
|
<div class="right-box with-menu">
|
||||||
<form class="ui form" data-tea-action="$" data-tea-success="success" ref="authForm">
|
<form class="ui form" data-tea-action="$" data-tea-success="success" ref="authForm">
|
||||||
<csrf-token></csrf-token>
|
|
||||||
<input type="hidden" name="webId" :value="webId">
|
<input type="hidden" name="webId" :value="webId">
|
||||||
<http-auth-config-box :v-auth-config="authConfig" @change="changeMethods"></http-auth-config-box>
|
<http-auth-config-box :v-auth-config="authConfig" @change="changeMethods"></http-auth-config-box>
|
||||||
<submit-btn @ref=""></submit-btn>
|
<submit-btn @ref=""></submit-btn>
|
||||||
|
|||||||
@@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
<div class="right-box tiny">
|
<div class="right-box tiny">
|
||||||
<form class="ui form" data-tea-action="$" data-tea-success="success" ref="authForm">
|
<form class="ui form" data-tea-action="$" data-tea-success="success" ref="authForm">
|
||||||
<csrf-token></csrf-token>
|
|
||||||
<input type="hidden" name="webId" :value="webId">
|
<input type="hidden" name="webId" :value="webId">
|
||||||
<http-auth-config-box :v-auth-config="authConfig" :v-is-location="true" @change="changeMethods"></http-auth-config-box>
|
<http-auth-config-box :v-auth-config="authConfig" :v-is-location="true"
|
||||||
|
@change="changeMethods"></http-auth-config-box>
|
||||||
<submit-btn></submit-btn>
|
<submit-btn></submit-btn>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user