Add token unwrapping, admin concept and user creation endpoint

This commit is contained in:
Miguel de la Cruz 2021-09-13 14:52:00 +02:00
parent 7ebb14e431
commit 3c7c32423e
12 changed files with 141 additions and 16 deletions

View file

@ -10,6 +10,7 @@ type User struct {
Mail string `json:"mail"`
Username string `json:"username"`
Password string `json:"-"`
Admin bool `json:"admin"`
}
func (u *User) IsValid() error {