保存日志审计改造中间状态,准备兼容三种数据库
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-09-08 22:07:46 +08:00
1 parent 3af9250ffe
commit 9bdf866a87
7 files changed
+142 -4

No files matched your search

+1
View File
@@ -369,6 +369,7 @@ func configSectionFromPath(path string) (config.Section, bool) {
func configActor(ctx *appcontext.Context, req *http.Request) config.AuditActor {
actor := config.AuditActor{UserID: strconv.Itoa(ctx.UserID), Role: string(ctx.EffectiveRole()), RecentAuth: ctx.RecentAuth, RecoveryCodeConfigured: ctx.RecoveryCodeConfigured}
actor.Name = ctx.UserAccount
if sessionManager := session.Instance; sessionManager != nil {
if cookie, err := req.Cookie(sessionManager.Cookie.Name); err == nil {
actor.SessionID = cookie.Value