mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Update comment and add missing omitempty tag
This commit is contained in:
parent
2ab811a476
commit
b87e026581
1 changed files with 2 additions and 2 deletions
|
|
@ -32,7 +32,7 @@ const (
|
|||
IdentifierTypePhone = "m.id.phone"
|
||||
)
|
||||
|
||||
// ReqRegister is the JSON request for http://matrix.org/docs/spec/client_server/r0.2.0.html#post-matrix-client-r0-register
|
||||
// ReqRegister is the JSON request for https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-register
|
||||
type ReqRegister struct {
|
||||
Username string `json:"username,omitempty"`
|
||||
Password string `json:"password,omitempty"`
|
||||
|
|
@ -43,7 +43,7 @@ type ReqRegister struct {
|
|||
|
||||
// Type for registration, only used for appservice user registrations
|
||||
// https://matrix.org/docs/spec/application_service/r0.1.2#server-admin-style-permissions
|
||||
Type AuthType `json:"type"`
|
||||
Type AuthType `json:"type,omitempty"`
|
||||
}
|
||||
|
||||
type BaseAuthData struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue