User management panel (#289)

This commit is contained in:
Arminas 2023-03-15 22:13:53 +02:00 committed by GitHub
parent aadf099f50
commit 6dd5590940
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 720 additions and 99 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"`
}