diff options
author | Mark Haines <mjark@negativecurvature.net> | 2015-01-28 17:19:28 +0000 |
---|---|---|
committer | Mark Haines <mjark@negativecurvature.net> | 2015-01-28 17:19:28 +0000 |
commit | 26c8fff19ebfca3914305f820b29897db8ea4fca (patch) | |
tree | c346408ce8f8ced5d1cb2e8dce4ea7fb934bb37e /synapse/rest/media/v1 | |
parent | Merge branch 'master' into develop (diff) | |
parent | Rename ClientID to ClientInfo since it is a pair of IDs rather than a single ... (diff) | |
download | synapse-26c8fff19ebfca3914305f820b29897db8ea4fca.tar.xz |
Merge pull request #36 from matrix-org/device_id_from_access_token
Extract the device id and token id from the access token when autheniticating users
Diffstat (limited to 'synapse/rest/media/v1')
-rw-r--r-- | synapse/rest/media/v1/upload_resource.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/media/v1/upload_resource.py b/synapse/rest/media/v1/upload_resource.py index b1718a630b..b939a30e19 100644 --- a/synapse/rest/media/v1/upload_resource.py +++ b/synapse/rest/media/v1/upload_resource.py @@ -42,7 +42,7 @@ class UploadResource(BaseMediaResource): @defer.inlineCallbacks def _async_render_POST(self, request): try: - auth_user = yield self.auth.get_user_by_req(request) + auth_user, client = yield self.auth.get_user_by_req(request) # TODO: The checks here are a bit late. The content will have # already been uploaded to a tmp file at this point content_length = request.getHeader("Content-Length") |