aboutsummaryrefslogtreecommitdiff
path: root/matrix/matrix.go
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/matrix.go')
-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",
})