summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-03-16 12:51:34 +0000
committerDavid Baker <dave@matrix.org>2016-03-16 12:51:34 +0000
commit99797947aa5a7cdf8fe12043b4f25a155bcf4555 (patch)
tree7072b5ac8762af57339459e50f8b50dcad84ebb8 /synapse/rest
parentMake registration idempotent: if you specify the same session, make it give y... (diff)
downloadsynapse-99797947aa5a7cdf8fe12043b4f25a155bcf4555.tar.xz
pep8 & remove debug logging
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/register.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/register.py b/synapse/rest/client/v2_alpha/register.py
index 649491bdf6..c440430e25 100644
--- a/synapse/rest/client/v2_alpha/register.py
+++ b/synapse/rest/client/v2_alpha/register.py
@@ -149,7 +149,7 @@ class RegisterRestServlet(RestServlet):
 
         # have we already registered a user for this session
         registered_user_id = self.auth_handler.get_session_data(
-                session_id, "registered_user_id", None
+            session_id, "registered_user_id", None
         )
         if registered_user_id is not None:
             logger.info(
@@ -157,7 +157,9 @@ class RegisterRestServlet(RestServlet):
                 registered_user_id
             )
             access_token = yield self.auth_handler.issue_access_token(registered_user_id)
-            refresh_token = yield self.auth_handler.issue_refresh_token(registered_user_id)
+            refresh_token = yield self.auth_handler.issue_refresh_token(
+                registered_user_id
+            )
             defer.returnValue((200, {
                 "user_id": registered_user_id,
                 "access_token": access_token,
@@ -181,9 +183,8 @@ class RegisterRestServlet(RestServlet):
 
         # remember that we've now registered that user account, and with what
         # user ID (since the user may not have specified)
-        logger.info("%r", body)
         self.auth_handler.set_session_data(
-                session_id, "registered_user_id", user_id
+            session_id, "registered_user_id", user_id
         )
 
         if result and LoginType.EMAIL_IDENTITY in result: