From 689e4b8d2358fc05013edb2df367d2bbb8fbdaef Mon Sep 17 00:00:00 2001 From: Troplo Date: Tue, 3 Aug 2021 14:23:28 +1000 Subject: [PATCH] Fix for invalid password bug on Synapse? --- src/client/action/auth.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/client/action/auth.js b/src/client/action/auth.js index e7b7c635..7b93ae8c 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, });