Add user API endpoints and metrics endpoint

This commit is contained in:
Kevin Kandlbinder 2022-03-01 14:08:53 +01:00
parent c572bbce85
commit ff7339d88f
10 changed files with 299 additions and 1 deletions

View file

@ -10,7 +10,7 @@ type DBUser struct {
ID primitive.ObjectID `bson:"_id" json:"id"`
Username string `bson:"username" json:"username"` // Username is the username the user has
HashedPassword string `bson:"password" json:"password"` // HashedPassword contains the bcrypt-ed password
HashedPassword string `bson:"password" json:"-"` // HashedPassword contains the bcrypt-ed password
Admin *bool `bson:"admin,omitempty" json:"admin,omitempty"` // If set to true this user will have all privileges