Documentation ¶
Index ¶
Constants ¶
View Source
const ( //DS is the location of the user datastore DS = "core" + string(os.PathSeparator) + "user.ds" )
Variables ¶
View Source
var ErrLogon = errors.New("Invalid user and / or password")
ErrLogon is when a user fails a logon
Functions ¶
Types ¶
type User ¶
type User struct { Name string `json:"name,omitempty"` Password string `json:"password,omitempty"` EncPassword []byte `json:"encPassword,omitempty"` HomeApp string `json:"homeApp,omitempty"` Admin bool `json:"admin,omitempty"` // contains filtered or unexported fields }
User is a user in a freehold instance
func (*User) UpdatePassword ¶
UpdatePassword is called when a user changes their password
Click to show internal directories.
Click to hide internal directories.