diff --git a/src/webapi/router/router_task_tpl.go b/src/webapi/router/router_task_tpl.go index 5a48afdc..0569789f 100644 --- a/src/webapi/router/router_task_tpl.go +++ b/src/webapi/router/router_task_tpl.go @@ -173,6 +173,7 @@ func (f *tplTagsForm) Verify() { func taskTplBindTags(c *gin.Context) { var f tplTagsForm ginx.BindJSON(c, &f) + f.Verify() username := c.MustGet("username").(string) @@ -193,6 +194,7 @@ func taskTplBindTags(c *gin.Context) { func taskTplUnbindTags(c *gin.Context) { var f tplTagsForm ginx.BindJSON(c, &f) + f.Verify() username := c.MustGet("username").(string)