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

@ -10,4 +10,5 @@ type Interface struct {
type BaseData struct {
Active string
CurrentUser string
Admin bool
}

View file

@ -6,4 +6,5 @@ type User struct {
Password string `json:"password"`
// PasswordHash takes precedence over Password.
PasswordHash string `json:"password_hash"`
Admin bool `json:"admin"`
}