Skip to content

Commit cb2497a

Browse files
heiytorgustavosbarreto
authored andcommitted
chore(pkg): map users preferences to JSON
1 parent f61a7ea commit cb2497a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/models/user.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ type User struct {
7777
//
7878
// NOTE: MFA is available as a cloud-only feature and must be ignored in community.
7979
MFA UserMFA `json:"mfa" bson:"mfa"`
80-
Preferences UserPreferences `json:"-" bson:"preferences"`
80+
Preferences UserPreferences `json:"preferences" bson:"preferences"`
8181
Password UserPassword `bson:",inline"`
8282
}
8383

@@ -107,7 +107,7 @@ type UserPreferences struct {
107107
PreferredNamespace string `json:"-" bson:"preferred_namespace"`
108108

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

113113
type UserPassword struct {

0 commit comments

Comments
 (0)