fix: User-Struct JSON-Tags ergänzen (active/source/id etc. waren Großbuchstaben)
Frontend erhielt 'Active'/'Source' statt 'active'/'source' → Inaktiv-Badge und local-Badge zeigten falsche Werte. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,13 +23,13 @@ const (
|
|||||||
|
|
||||||
// User represents a user account in the system.
|
// User represents a user account in the system.
|
||||||
type User struct {
|
type User struct {
|
||||||
ID int64
|
ID int64 `json:"id"`
|
||||||
Username string
|
Username string `json:"username"`
|
||||||
Email string
|
Email string `json:"email"`
|
||||||
Role string
|
Role string `json:"role"`
|
||||||
Source string // "local" or "ldap"
|
Source string `json:"source"` // "local" or "ldap"
|
||||||
Active bool
|
Active bool `json:"active"`
|
||||||
CreatedAt time.Time
|
CreatedAt time.Time `json:"created_at"`
|
||||||
TenantID *int64 `json:"tenant_id,omitempty"`
|
TenantID *int64 `json:"tenant_id,omitempty"`
|
||||||
TOTPEnabled bool `json:"totp_enabled"`
|
TOTPEnabled bool `json:"totp_enabled"`
|
||||||
TOTPResetAt *time.Time `json:"totp_reset_at,omitempty"`
|
TOTPResetAt *time.Time `json:"totp_reset_at,omitempty"`
|
||||||
|
|||||||
Reference in New Issue
Block a user