summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-11-18 17:10:16 +0000
committerGitHub <noreply@github.com>2019-11-18 17:10:16 +0000
commitc7376cdfe3efe05942964efcdf8886d66342383c (patch)
tree0f57a7bbd25433ae09e6896b17954a82bb4c8215 /synapse/rest/client
parentNewsfile (diff)
downloadsynapse-c7376cdfe3efe05942964efcdf8886d66342383c.tar.xz
Apply suggestions from code review
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org>
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v1/login.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v1/login.py b/synapse/rest/client/v1/login.py
index abc210da57..f8d58afb29 100644
--- a/synapse/rest/client/v1/login.py
+++ b/synapse/rest/client/v1/login.py
@@ -397,7 +397,7 @@ class LoginRestServlet(RestServlet):
             raise LoginError(401, "Invalid JWT", errcode=Codes.UNAUTHORIZED)
 
         user_id = UserID(user, self.hs.hostname).to_string()
-        result = yield self._complete_login(user_id, login_submission)
+        result = yield self._complete_login(user_id, login_submission, create_non_existant_users=True)
         return result