Skip to content

Commit

Permalink
Fix matrix login scheme (#487)
Browse files Browse the repository at this point in the history
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max and crazy-max committed Sep 10, 2021
1 parent 8e15feb commit 42d3535
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions internal/notif/matrix/client.go
Expand Up @@ -56,8 +56,11 @@ func (c *Client) Send(entry model.NotifEntry) error {
}

r, err := m.Login(&gomatrix.ReqLogin{
Type: "m.login.password",
User: user,
Type: "m.login.password",
Identifier: gomatrix.UserIdentifier{
IDType: "m.id.user",
User: user,
},
Password: password,
InitialDeviceDisplayName: c.meta.Name,
})
Expand Down

0 comments on commit 42d3535

Please sign in to comment.