From: Troplo Date: Tue, 3 Aug 2021 04:23:28 +0000 (+1000) Subject: Fix for invalid password bug on Synapse? X-Git-Tag: v1.1.0~23^2 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=689e4b8d2358fc05013edb2df367d2bbb8fbdaef;p=cinny.git Fix for invalid password bug on Synapse? --- diff --git a/src/client/action/auth.js b/src/client/action/auth.js index e7b7c63..7b93ae8 100644 --- a/src/client/action/auth.js +++ b/src/client/action/auth.js @@ -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, });