summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-08-22 14:47:34 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-08-22 14:47:34 +0100
commit1c5b8c622248d4ee3b38b01a997eaa8844859beb (patch)
tree7a81d534e2458b4d179056c7721a067260509d2c /synapse/rest/client
parentDo not send consent notices if "no-consent-required" is set (diff)
downloadsynapse-1c5b8c622248d4ee3b38b01a997eaa8844859beb.tar.xz
Revert "Add "require_consent" parameter for registration"
This reverts commit 3320aaab3a9bba3f5872371aba7053b41af9d0a0.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/register.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 724231f364..05ea1459e3 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -525,9 +525,6 @@ class RegisterRestServlet(RestServlet):
         # downcased one in `username` for the mac calculation
         user = body["username"].encode("utf-8")
 
-        # do not require consent for this user (for example, bots)
-        require_consent = body.get("require_consent", True)
-
         # str() because otherwise hmac complains that 'unicode' does not
         # have the buffer interface
         got_mac = str(body["mac"])
@@ -545,7 +542,7 @@ class RegisterRestServlet(RestServlet):
             raise SynapseError(403, "HMAC incorrect")
 
         user_id = yield self.registration_handler.register_user(
-            localpart=username, password=password, require_consent=require_consent,
+            localpart=username, password=password
         )
 
         result = yield self._create_registration_details(user_id, body)