User management

More than one user with Manager or Admin permissions can be created from UI
This commit is contained in:
armisss4 2022-12-29 09:42:12 +02:00 committed by GitHub
parent f256668a99
commit df10417668
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 706 additions and 101 deletions

View file

@ -6,8 +6,10 @@ import (
type IStore interface {
Init() error
GetUser() (model.User, error)
GetUsers() ([]model.User, error)
GetUserByName(username string) (model.User, error)
SaveUser(user model.User) error
DeleteUser(username string) error
GetGlobalSettings() (model.GlobalSetting, error)
GetServer() (model.Server, error)
GetClients(hasQRCode bool) ([]model.ClientData, error)