Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EveryoneUserID provides a shortcut to state "all authenticated users". EveryoneUserID string = "0" // EveryoneUserName provides the descriptor for this type of user/group. EveryoneUserName string = "Everyone" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type User ¶
type User struct { model.BaseEntity Firstname string `json:"firstname"` Lastname string `json:"lastname"` Email string `json:"email"` Initials string `json:"initials"` Active bool `json:"active"` Editor bool `json:"editor"` Admin bool `json:"admin"` ViewUsers bool `json:"viewUsers"` Analytics bool `json:"analytics"` GlobalAdmin bool `json:"global"` Password string `json:"-"` Salt string `json:"-"` Reset string `json:"-"` LastVersion string `json:"lastVersion"` Theme string `json:"theme"` Accounts []account.Account `json:"accounts"` Groups []group.Record `json:"groups"` }
User defines a login.
func (*User) GetAccount ¶
GetAccount returns matching org account using orgID
func (*User) ProtectSecrets ¶
func (user *User) ProtectSecrets()
ProtectSecrets blanks sensitive data.
Click to show internal directories.
Click to hide internal directories.