mirror of
https://github.com/Unkn0wnCat/matrix-veles.git
synced 2025-08-01 23:58:43 +02:00
Add user API endpoints and metrics endpoint
This commit is contained in:
parent
c572bbce85
commit
ff7339d88f
10 changed files with 299 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue