mirror of
https://github.com/element-hq/synapse
synced 2024-09-11 20:35:10 +00:00
Ensure that 3PU lookup request fields actually get passed in
This commit is contained in:
parent
f0c73a1e7a
commit
3856582741
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ class ThirdPartyUserServlet(RestServlet):
|
||||||
|
|
||||||
@defer.inlineCallbacks
|
@defer.inlineCallbacks
|
||||||
def on_GET(self, request, protocol):
|
def on_GET(self, request, protocol):
|
||||||
fields = {} # TODO
|
fields = request.args
|
||||||
|
del fields["access_token"]
|
||||||
|
|
||||||
|
# TODO(paul): Some type checking on the request args might be nice
|
||||||
|
# They should probably all be strings
|
||||||
results = yield self.appservice_handler.query_3pu(protocol, fields)
|
results = yield self.appservice_handler.query_3pu(protocol, fields)
|
||||||
|
|
||||||
defer.returnValue((200, results))
|
defer.returnValue((200, results))
|
||||||
|
|
Loading…
Reference in a new issue