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:
Erik Johnston 2019-11-18 17:10:16 +00:00 committed by GitHub
parent 4fc53bf1fb
commit c7376cdfe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

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
"""

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