summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/handlers/auth.py4
-rw-r--r--synapse/rest/client/v1/login.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 20c62bd780..0955cf9dba 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -135,8 +135,8 @@ class AuthHandler(BaseHandler):
             AuthError if the client has completed a login flow, and it gives
                 a different user to `requester`
 
-            LimitExceededError if the ratelimiter's failed requests count for this
-                user is too high too proceed
+            LimitExceededError if the ratelimiter's failed request count for this
+                user is too high to proceed
 
         """
 
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