summary refs log tree commit diff
path: root/synapse/handlers/identity.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-12 14:36:44 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-12 14:36:44 +0100
commitd907e8f599554a3ff1b65bf7eb22aeb1e63e5f21 (patch)
tree10a2ab2f26bd387c2e62ac265d21762acf26790f /synapse/handlers/identity.py
parentMerge branch 'master' into dinsic (diff)
parent1.0.0 (diff)
downloadsynapse-d907e8f599554a3ff1b65bf7eb22aeb1e63e5f21.tar.xz
Merge branch 'master' into dinsic
Diffstat (limited to 'synapse/handlers/identity.py')
-rw-r--r--synapse/handlers/identity.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/synapse/handlers/identity.py b/synapse/handlers/identity.py
index f39803629e..02f78305a9 100644
--- a/synapse/handlers/identity.py
+++ b/synapse/handlers/identity.py
@@ -270,7 +270,14 @@ class IdentityHandler(BaseHandler):
         defer.returnValue(changed)
 
     @defer.inlineCallbacks
-    def requestEmailToken(self, id_server, email, client_secret, send_attempt, **kwargs):
+    def requestEmailToken(
+        self,
+        id_server,
+        email,
+        client_secret,
+        send_attempt,
+        next_link=None,
+    ):
         if not self._should_trust_id_server(id_server):
             raise SynapseError(
                 400, "Untrusted ID server '%s'" % id_server,
@@ -282,11 +289,15 @@ class IdentityHandler(BaseHandler):
             'client_secret': client_secret,
             'send_attempt': send_attempt,
         }
-        params.update(kwargs)
+
         # if we have a rewrite rule set for the identity server,
         # apply it now.
         if id_server in self.rewrite_identity_server_urls:
             id_server = self.rewrite_identity_server_urls[id_server]
+
+        if next_link:
+            params.update({'next_link': next_link})
+
         try:
             data = yield self.http_client.post_json_get_json(
                 "https://%s%s" % (