fix(audit): 审计按账号 id 归属并记录来源 IP/UA,登录失败与限速入审计和指标,写入失败计数告警

This commit is contained in:
Lemon-miaow committed 2026-09-24 16:02:44 +08:00
1 parent c4e4953f3d
commit 857c73a66a
39 files changed
+794 -161

No files matched your search

+1 -1
View File
@@ -117,6 +117,6 @@ func (a *API) handleCommand(w http.ResponseWriter, r *http.Request) {
return
}
a.audit(r, p.Email, "console.command", name)
a.audit(r, "console.command", name)
writeJSON(w, http.StatusOK, map[string]any{"name": name, "output": output})
}