diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2021-01-12 12:48:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-12 12:48:12 +0000 |
commit | 0f8945e166b5f1965e69943e16c8220da74211bd (patch) | |
tree | 3c75a3d959cba800bd5e967c6c95e303483cabbd /synapse/rest/client/v2_alpha/keys.py | |
parent | Remove SynapseRequest.get_user_agent (#9069) (diff) | |
download | synapse-0f8945e166b5f1965e69943e16c8220da74211bd.tar.xz |
Kill off `HomeServer.get_ip_from_request()` (#9080)
Homeserver.get_ip_from_request() used to be a bit more complicated, but now it is totally redundant. Let's get rid of it.
Diffstat (limited to 'synapse/rest/client/v2_alpha/keys.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/keys.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py index b91996c738..a6134ead8a 100644 --- a/synapse/rest/client/v2_alpha/keys.py +++ b/synapse/rest/client/v2_alpha/keys.py @@ -271,11 +271,7 @@ class SigningKeyUploadServlet(RestServlet): body = parse_json_object_from_request(request) await self.auth_handler.validate_user_via_ui_auth( - requester, - request, - body, - self.hs.get_ip_from_request(request), - "add a device signing key to your account", + requester, request, body, "add a device signing key to your account", ) result = await self.e2e_keys_handler.upload_signing_keys_for_user(user_id, body) |