mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-11-20 06:49:52 +01:00
Fix for invalid password bug on Synapse?
This commit is contained in:
parent
d0378ea528
commit
689e4b8d23
1 changed files with 4 additions and 1 deletions
|
@ -15,7 +15,10 @@ async function login(username, homeserver, password) {
|
|||
const client = sdk.createClient({ baseUrl });
|
||||
|
||||
const response = await client.login('m.login.password', {
|
||||
user: `@${username}:${homeserver}`,
|
||||
identifier: {
|
||||
type: 'm.id.user',
|
||||
user: username,
|
||||
},
|
||||
password,
|
||||
initial_device_display_name: cons.DEVICE_DISPLAY_NAME,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue