From 7e2294933aa159e170ab8b090c58e3c3d97c765a Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 1 Jun 2021 23:43:23 +0200 Subject: Add it to the correct place --- mxlib/api.go | 1 + mxlib/client.go | 1 + 2 files changed, 2 insertions(+) (limited to 'mxlib') diff --git a/mxlib/api.go b/mxlib/api.go index 9cd02d5..9b7cd36 100644 --- a/mxlib/api.go +++ b/mxlib/api.go @@ -41,6 +41,7 @@ type LoginResponse struct { type RegisterRequest struct { Auth RegisterRequestAuth `json:"auth"` + Type string `json:"type"` Username string `json:"username"` } diff --git a/mxlib/client.go b/mxlib/client.go index 689d3a0..4700333 100644 --- a/mxlib/client.go +++ b/mxlib/client.go @@ -147,6 +147,7 @@ func (mx *Client) RegisterUser(username string) error { Auth: RegisterRequestAuth{ Type: "m.login.application_service", }, + Type: "m.login.application_service", Username: username, } var rep RegisterResponse -- cgit v1.2.3