Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
func (*List) GetByUsernameWithPassowrd ¶
func (l *List) GetByUsernameWithPassowrd(username string) *PersonWithPassword
GetByEmail returns a person.
type Person ¶
type Person struct { UUID string `json:"uuid"` Name string `json:"name"` Username string `json:"username"` Email string `json:"email"` AllowLogin bool `json:"allow_login"` IsAdmin bool `json:"is_admin"` LastSeen time.Time `json:"last_seen"` State devices.State `json:"state"` }
func (Person) Equal ¶
func (a Person) Equal(b PersonWithPasswords) bool
Equal checks if 2 persons are equal.
type PersonMapWithPassword ¶
type PersonMapWithPassword map[string]*PersonWithPassword
type PersonWithPassword ¶
func (*PersonWithPassword) CheckPassword ¶
func (p *PersonWithPassword) CheckPassword(password string) error
type PersonWithPasswords ¶
type PersonWithPasswords struct { PersonWithPassword NewPassword string `json:"new_password,omitempty"` RepeatPassword string `json:"repeat_password,omitempty"` }
func (*PersonWithPasswords) UpdatePassword ¶
func (a *PersonWithPasswords) UpdatePassword() error
Click to show internal directories.
Click to hide internal directories.