aboutsummaryrefslogtreecommitdiff
path: root/matrix
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-02-18 20:38:35 +0200
committerTulir Asokan <tulir@maunium.net>2020-02-18 20:38:35 +0200
commit18fa85f4c42fc23f4e35dc029cf59232adead404 (patch)
tree00413a6fff37b9d04ff32a782dbcc4a5c6d7e803 /matrix
parent7012564d0ee8481c0e4c5ecb359f77d12c9f793b (diff)
Update deps
Diffstat (limited to 'matrix')
-rw-r--r--matrix/matrix.go7
1 files changed, 5 insertions, 2 deletions
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",
})