Skip to content

Commit

Permalink
chore(pkg): map users preferences to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
heiytor committed Jan 16, 2025
1 parent 58eb44e commit a0f1db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ type User struct {
//
// NOTE: MFA is available as a cloud-only feature and must be ignored in community.
MFA UserMFA `json:"mfa" bson:"mfa"`
Preferences UserPreferences `json:"-" bson:"preferences"`
Preferences UserPreferences `json:"preferences" bson:"preferences"`
Password UserPassword `bson:",inline"`
}

Expand Down Expand Up @@ -107,7 +107,7 @@ type UserPreferences struct {
PreferredNamespace string `json:"-" bson:"preferred_namespace"`

// AuthMethods indicates the authentication methods that the user can use to authenticate.
AuthMethods []UserAuthMethod `json:"-" bson:"auth_methods"`
AuthMethods []UserAuthMethod `json:"auth_methods" bson:"auth_methods"`
}

type UserPassword struct {
Expand Down

0 comments on commit a0f1db6

Please sign in to comment.