summary refs log tree commit diff
path: root/synapse/rest/client
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/rest/client')
-rw-r--r--synapse/rest/client/v2_alpha/register.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index e93897e285..dd176c7e77 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -136,11 +136,11 @@ class RegisterRestServlet(RestServlet):
                 logger.info("bind_email specified: binding")
 
                 emailThreepid = result[LoginType.EMAIL_IDENTITY]
-                threepidCreds = emailThreepid['threepidCreds']
+                threepid_creds = emailThreepid['threepid_creds']
                 logger.debug("Binding emails %s to %s" % (
                     emailThreepid, user_id
                 ))
-                yield self.identity_handler.bind_threepid(threepidCreds, user_id)
+                yield self.identity_handler.bind_threepid(threepid_creds, user_id)
             else:
                 logger.info("bind_email not specified: not binding email")