Update deps

This commit is contained in:
Tulir Asokan
2020-02-18 20:38:35 +02:00
parent 7012564d0e
commit 18fa85f4c4
5 changed files with 58 additions and 110 deletions

View File

@ -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",
})