mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 11:54:52 -04: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
2 changed files with 3 additions and 3 deletions
|
@ -135,8 +135,8 @@ class AuthHandler(BaseHandler):
|
||||||
AuthError if the client has completed a login flow, and it gives
|
AuthError if the client has completed a login flow, and it gives
|
||||||
a different user to `requester`
|
a different user to `requester`
|
||||||
|
|
||||||
LimitExceededError if the ratelimiter's failed requests count for this
|
LimitExceededError if the ratelimiter's failed request count for this
|
||||||
user is too high too proceed
|
user is too high to proceed
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -397,7 +397,7 @@ class LoginRestServlet(RestServlet):
|
||||||
raise LoginError(401, "Invalid JWT", errcode=Codes.UNAUTHORIZED)
|
raise LoginError(401, "Invalid JWT", errcode=Codes.UNAUTHORIZED)
|
||||||
|
|
||||||
user_id = UserID(user, self.hs.hostname).to_string()
|
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
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue