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 +}