mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-26 03:59:22 -05:00
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:
parent
4fc53bf1fb
commit
c7376cdfe3
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user