From 8e20c4822fbeb025009758b1c9d9c48713da5ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillem=20Nieto=20Tal=C3=B3?= Date: Sat, 30 Mar 2024 20:53:29 +0100 Subject: [PATCH] Add identifier when login with password Since Matrix spec v1, the username when login with password should be sent in the `identifier` field, as explained here: https://spec.matrix.org/v1.1/client-server-api/#matrix-user-id A full example of a password based login payload can be found here: https://spec.matrix.org/v1.1/client-server-api/#password-based --- src/synapse/authProvider.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/synapse/authProvider.js b/src/synapse/authProvider.js index 723f155..c91dda8 100644 --- a/src/synapse/authProvider.js +++ b/src/synapse/authProvider.js @@ -24,6 +24,10 @@ const authProvider = { type: "m.login.password", user: username, password: password, + identifier: { + type: "m.id.user", + user: username, + } } ) ),