Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserData ¶
type UserData struct {
UserID string `json:"userid,omitempty" bson:"userid,omitempty"` // map userid to id
Username string `json:"username,omitempty" bson:"username,omitempty"`
Emails []string `json:"emails,omitempty" bson:"emails,omitempty"`
PasswordExists bool `json:"passwordExists,omitempty"` // Does a password exist for the user?
Roles []string `json:"roles,omitempty" bson:"roles,omitempty"`
TermsAccepted string `json:"termsAccepted,omitempty" bson:"termsAccepted,omitempty"`
EmailVerified bool `json:"emailVerified" bson:"authenticated"` //tag is name `authenticated` for historical reasons
IdVerified bool `json:"idVerified"`
}
UserData is the data structure returned from a successful Login query.
func (*UserData) IsCustodial ¶
type UserUpdate ¶
type UserUpdate struct {
Username *string `json:"username,omitempty"`
Emails *[]string `json:"emails,omitempty"`
Password *string `json:"password,omitempty"`
Roles *[]string `json:"roles,omitempty"`
EmailVerified *bool `json:"emailVerified,omitempty"`
}
UserUpdate is the data structure for updating of a users details
func (*UserUpdate) HasUpdates ¶
func (u *UserUpdate) HasUpdates() bool
Click to show internal directories.
Click to hide internal directories.