From 705fd57a4bacf594e295f9110ac7bd36cb434069 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 2 Apr 2020 15:09:33 +0100 Subject: [PATCH] Fix spurious extra devices on registration We send a parameter to prevent being immediately logged in after registration, but we regressed it from snake case to camelcase during the course of cross-signing dev. Fixes https://github.com/vector-im/riot-web/issues/12865 --- src/components/structures/auth/Registration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 08c2a11641..c74f6ed6e3 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -463,7 +463,7 @@ export default createReactClass({ initial_device_display_name: this.props.defaultDeviceDisplayName, }; if (auth) registerParams.auth = auth; - if (inhibitLogin !== undefined && inhibitLogin !== null) registerParams.inhibitLogin = inhibitLogin; + if (inhibitLogin !== undefined && inhibitLogin !== null) registerParams.inhibit_login = inhibitLogin; return this.state.matrixClient.registerRequest(registerParams); },