Fix matrix login scheme (#487)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-09-10 12:38:08 +02:00
committed by GitHub
parent 8e15feb225
commit 42d3535188

View File

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