Documentation ¶
Index ¶
Constants ¶
View Source
const (
CfgUsers = "users.users"
)
Variables ¶
View Source
var CoreComponent *app.CoreComponent
View Source
var ParamsUsers = &ParametersUsers{ Users: map[string]*User{ "wasp": { PasswordHash: "c34ec258dd87938c9c19228f7062ef17c847ed9fac4f9a284ccfebdbff08e3f9", PasswordSalt: "db32d4f152a3dadd81cd9b71074a4ea3346dbf8ff1998d33e9452091fff6f503", Permissions: []string{ "dashboard", "api", }, }, }, }
Functions ¶
This section is empty.
Types ¶
type ParametersUsers ¶
type User ¶
type User struct { PasswordHash string `default:"0000000000000000000000000000000000000000000000000000000000000000" usage:"the auth password+salt as a scrypt hash"` PasswordSalt string `` /* 126-byte string literal not displayed */ Permissions []string `default:"" usage:"permissions of the user"` }
func (*User) PermissionsMap ¶
PermissionsMap returns the permissions of the user as a map.
Click to show internal directories.
Click to hide internal directories.