store only UID in session vars, not complete user

This commit is contained in:
2025-09-20 17:33:03 -06:00
parent d8648ace80
commit 5ea7c6d829
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ func SetupAmSession(session *sessions.Session) {
session.Values["temp"] = "Active"
u, err := database.AmGetAnonUser()
if err == nil {
session.Values["user"] = u
session.Values["user_id"] = u.Uid
} else {
log.Errorf("Unable to load anon user: %v", err)
}