mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-12-29 10:56:10 +00:00
Merge pull request #38 from Troplo/master
Fix for invalid password bug on Synapse/Official Matrix Server?
This commit is contained in:
commit
20611b6e4b
|
@ -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