aboutsummaryrefslogtreecommitdiff
path: root/matrix
diff options
context:
space:
mode:
Diffstat (limited to 'matrix')
-rw-r--r--matrix/matrix.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go
index 25c52ba..3a37e64 100644
--- a/matrix/matrix.go
+++ b/matrix/matrix.go
@@ -104,9 +104,10 @@ 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(&gomatrix.ReqLogin{
- Type: "m.login.password",
- User: user,
- Password: password,
+ Type: "m.login.password",
+ User: user,
+ Password: password,
+ InitialDeviceDisplayName: "gomuks",
})
if err != nil {
return err