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

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