Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { Login string `yaml:"-"` PasswordHash string `yaml:"password"` PasswordSalt string `yaml:"salt"` YamledGroups []string `yaml:"groups"` //for keep in user file Groups map[string]bool `yaml:"-"` // contains filtered or unexported fields }
User data
func AddUser ¶
AddUser add new User. Function get path to "users" dir. Password will be hashed and erased
func (*User) AddToGroup ¶
AddToGroup adds user to given group
func (*User) CheckGroup ¶
CheckGroup checks if user is in given group
func (*User) VerifyPassword ¶
VerifyPassword perform password verification based on stored hash and salt
Click to show internal directories.
Click to hide internal directories.