take extra return val from check_auth in account too

This commit is contained in:
David Baker 2016-03-16 14:33:19 +00:00
parent ff7d3dc3a0
commit f5e90422f5

View File

@ -43,7 +43,7 @@ class PasswordRestServlet(RestServlet):
body = parse_json_object_from_request(request)
authed, result, params = yield self.auth_handler.check_auth([
authed, result, params, _ = yield self.auth_handler.check_auth([
[LoginType.PASSWORD],
[LoginType.EMAIL_IDENTITY]
], body, self.hs.get_ip_from_request(request))