From 2fa710460561042ed4989bba0ea3edab938891ba Mon Sep 17 00:00:00 2001 From: sysops Date: Fri, 20 Mar 2026 13:46:47 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20User-Struct=20JSON-Tags=20erg=C3=A4nzen?= =?UTF-8?q?=20(active/source/id=20etc.=20waren=20Gro=C3=9Fbuchstaben)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Frontend erhielt 'Active'/'Source' statt 'active'/'source' → Inaktiv-Badge und local-Badge zeigten falsche Werte. Co-Authored-By: Claude Sonnet 4.6 --- internal/userstore/userstore.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/internal/userstore/userstore.go b/internal/userstore/userstore.go index 172b6d2..a5b4ceb 100644 --- a/internal/userstore/userstore.go +++ b/internal/userstore/userstore.go @@ -23,13 +23,13 @@ const ( // User represents a user account in the system. type User struct { - ID int64 - Username string - Email string - Role string - Source string // "local" or "ldap" - Active bool - CreatedAt time.Time + ID int64 `json:"id"` + Username string `json:"username"` + Email string `json:"email"` + Role string `json:"role"` + Source string `json:"source"` // "local" or "ldap" + Active bool `json:"active"` + CreatedAt time.Time `json:"created_at"` TenantID *int64 `json:"tenant_id,omitempty"` TOTPEnabled bool `json:"totp_enabled"` TOTPResetAt *time.Time `json:"totp_reset_at,omitempty"`