From 2b2da4faf713a56e43a29a8b32bf566216346b86 Mon Sep 17 00:00:00 2001 From: squatica <53292272+squatica@users.noreply.github.com> Date: Mon, 6 May 2024 20:53:04 +0200 Subject: [PATCH] stop using deprecated login object --- src/matrix-server-config.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/matrix-server-config.js b/src/matrix-server-config.js index 59d0cf9..449d9f5 100644 --- a/src/matrix-server-config.js +++ b/src/matrix-server-config.js @@ -455,7 +455,10 @@ module.exports = function(RED) { matrixClient.login( 'm.login.password', { - user: userId, + identifier: { + type: 'm.id.user', + user: userId, + }, password: password, initial_device_display_name: displayName }) @@ -534,4 +537,4 @@ module.exports = function(RED) { localStorage.setItem('my_device_id', deviceId); return true; } -} \ No newline at end of file +}