Apply suggestions from code review

Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
Co-Authored-By: Brendan Abolivier <babolivier@matrix.org>
This commit is contained in:
authored and GitHub committed 2019-11-18 17:10:16 +00:00
1 parent 4fc53bf1fb
commit c7376cdfe3
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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
"""
+1 -1
View File
@@ -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