From 18fa85f4c42fc23f4e35dc029cf59232adead404 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 18 Feb 2020 20:38:35 +0200 Subject: Update deps --- matrix/matrix.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'matrix') diff --git a/matrix/matrix.go b/matrix/matrix.go index 87f372d..ffd4d0c 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -134,8 +134,11 @@ func (c *Container) Initialized() bool { // Login sends a password login request with the given username and password. func (c *Container) Login(user, password string) error { resp, err := c.client.Login(&mautrix.ReqLogin{ - Type: "m.login.password", - User: user, + Type: "m.login.password", + Identifier: mautrix.UserIdentifier{ + Type: "m.id.user", + User: user, + }, Password: password, InitialDeviceDisplayName: "gomuks", }) -- cgit v1.2.3