Set initial device name to "gomuks"
This commit is contained in:
parent
262c34a45a
commit
b0caa48db1
@ -104,9 +104,10 @@ func (c *Container) Initialized() bool {
|
|||||||
// Login sends a password login request with the given username and password.
|
// Login sends a password login request with the given username and password.
|
||||||
func (c *Container) Login(user, password string) error {
|
func (c *Container) Login(user, password string) error {
|
||||||
resp, err := c.client.Login(&gomatrix.ReqLogin{
|
resp, err := c.client.Login(&gomatrix.ReqLogin{
|
||||||
Type: "m.login.password",
|
Type: "m.login.password",
|
||||||
User: user,
|
User: user,
|
||||||
Password: password,
|
Password: password,
|
||||||
|
InitialDeviceDisplayName: "gomuks",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user