summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2019-06-06 15:53:40 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2019-06-06 15:53:40 +0100
commit3b0a477db32c03096e3130ea5c233ddbf2d171bf (patch)
tree85dfb6b0f24854a902a9e748dcc38ac681ccd4a7 /synapse/rest
parentFix clientip bug (diff)
downloadsynapse-3b0a477db32c03096e3130ea5c233ddbf2d171bf.tar.xz
Fix bugs with database
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/account.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/synapse/rest/client/v2_alpha/account.py b/synapse/rest/client/v2_alpha/account.py
index 3e33b5b551..657afb495a 100644
--- a/synapse/rest/client/v2_alpha/account.py
+++ b/synapse/rest/client/v2_alpha/account.py
@@ -176,6 +176,7 @@ class EmailPasswordRequestTokenRestServlet(RestServlet):
 
         token_expires = (self.hs.clock.time_msec() +
                          self.config.email_validation_token_lifetime)
+        logger.info("lifetime: %s", self.config.email_validation_token_lifetime)
 
         yield self.datastore.start_or_continue_validation_session(
             "email", email, session_id, client_secret, send_attempt,
@@ -260,10 +261,6 @@ class ThreepidSubmitTokenServlet(RestServlet):
                 self.clock.time_msec(),
             )
 
-            # Delete associated session tokens from the db as we have no
-            # further use for them
-            yield self.datastore.delete_threepid_tokens(sid)
-
             # Perform a 302 redirect if next_link is set
             if next_link:
                 if next_link.startswith("file:///"):