summary refs log tree commit diff
path: root/webclient/login/login-controller.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-08-14 16:40:15 +0100
committerKegan Dougal <kegan@matrix.org>2014-08-14 16:40:15 +0100
commitfef3183461a60715cb5fb0638abcde335c61db82 (patch)
treed34d0aa0abee7536e19efd2bde8ddb637d7a1534 /webclient/login/login-controller.js
parenths: Make /login accept full user IDs or just local parts. webclient: Only ena... (diff)
downloadsynapse-fef3183461a60715cb5fb0638abcde335c61db82.tar.xz
Pass back the user_id in the response to /login in case it has changed. Store and use that on the webclient rather than the input field.
Diffstat (limited to 'webclient/login/login-controller.js')
-rw-r--r--webclient/login/login-controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/login/login-controller.js b/webclient/login/login-controller.js
index 53756be9ea..8bd6a4e84f 100644
--- a/webclient/login/login-controller.js
+++ b/webclient/login/login-controller.js
@@ -79,7 +79,7 @@ angular.module('LoginController', ['matrixService'])
                     $scope.feedback = "Login successful.";
                     matrixService.setConfig({
                         homeserver: $scope.account.homeserver,
-                        user_id: $scope.account.user_id,
+                        user_id: response.data.user_id,
                         access_token: response.data.access_token
                     });
                     matrixService.saveConfig();