summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorDaniel Wagner-Hall <daniel@matrix.org>2015-08-12 15:49:37 +0100
committerDaniel Wagner-Hall <daniel@matrix.org>2015-08-12 15:49:37 +0100
commit415c2f05491ce65a4fc34326519754cd1edd9c54 (patch)
tree85f397b2fca667a430299a694d701cd6abe5822a /synapse/storage
parentMerge branch 'develop' into auth (diff)
downloadsynapse-415c2f05491ce65a4fc34326519754cd1edd9c54.tar.xz
Simplify LoginHander and AuthHandler
 * Merge LoginHandler -> AuthHandler
 * Add a bunch of documentation
 * Improve some naming
 * Remove unused branches

I will start merging the actual logic of the two handlers shortly
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/registration.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 4eaa088b36..d2d5b07cb3 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -111,16 +111,16 @@ class RegistrationStore(SQLBaseStore):
         })
 
     @defer.inlineCallbacks
-    def user_delete_access_tokens_apart_from(self, user_id, token_id):
+    def user_delete_access_tokens(self, user_id):
         yield self.runInteraction(
-            "user_delete_access_tokens_apart_from",
-            self._user_delete_access_tokens_apart_from, user_id, token_id
+            "user_delete_access_tokens",
+            self._user_delete_access_tokens, user_id
         )
 
-    def _user_delete_access_tokens_apart_from(self, txn, user_id, token_id):
+    def _user_delete_access_tokens(self, txn, user_id):
         txn.execute(
-            "DELETE FROM access_tokens WHERE user_id = ? AND id != ?",
-            (user_id, token_id)
+            "DELETE FROM access_tokens WHERE user_id = ?",
+            (user_id, )
         )
 
     @defer.inlineCallbacks