summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-11-20 18:25:31 +0000
committerDavid Baker <dbkr@matrix.org>2014-11-20 18:25:31 +0000
commit58f82e2e5484e9a83d0c184747442ac887e3b5d7 (patch)
treefb93f00e8ba6334d2a524d530e0bbf581fd76d25 /synapse/rest
parentMerge branch 'develop' into pushers (diff)
parentFix pep8 and pyflakes warnings (diff)
downloadsynapse-58f82e2e5484e9a83d0c184747442ac887e3b5d7.tar.xz
Merge branch 'develop' into pushers
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/register.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/rest/register.py b/synapse/rest/register.py
index 5c15614ea9..f25e23a158 100644
--- a/synapse/rest/register.py
+++ b/synapse/rest/register.py
@@ -222,6 +222,7 @@ class RegisterRestServlet(RestServlet):
 
         threepidCreds = register_json['threepidCreds']
         handler = self.handlers.registration_handler
+        logger.debug("Registering email. threepidcreds: %s" % (threepidCreds))
         yield handler.register_email(threepidCreds)
         session["threepidCreds"] = threepidCreds  # store creds for next stage
         session[LoginType.EMAIL_IDENTITY] = True  # mark email as done
@@ -232,6 +233,7 @@ class RegisterRestServlet(RestServlet):
 
     @defer.inlineCallbacks
     def _do_password(self, request, register_json, session):
+        yield
         if (self.hs.config.enable_registration_captcha and
                 not session[LoginType.RECAPTCHA]):
             # captcha should've been done by this stage!
@@ -259,6 +261,9 @@ class RegisterRestServlet(RestServlet):
         )
 
         if session[LoginType.EMAIL_IDENTITY]:
+            logger.debug("Binding emails %s to %s" % (
+                session["threepidCreds"], user_id)
+            )
             yield handler.bind_emails(user_id, session["threepidCreds"])
 
         result = {