Handle unbound members when binding request

This commit is contained in:
eikendev 2020-08-03 15:37:16 +02:00
parent 9a65fb4356
commit 76c2fe9c22
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
4 changed files with 51 additions and 25 deletions

View file

@ -69,8 +69,8 @@ func (u *User) IntoExternalUser() *ExternalUser {
// UpdateUser is used to process queries for updating users.
type UpdateUser struct {
Name string `json:"name"`
Password string `json:"password"`
IsAdmin bool `json:"is_admin"`
MatrixID string `json:"matrix_id"`
Name *string `json:"name"`
Password *string `json:"password"`
IsAdmin *bool `json:"is_admin"`
MatrixID *string `json:"matrix_id"`
}