This commit is contained in:
1 parent
3af9250ffe
commit
9bdf866a87
7 files changed
+142
-4
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user