summary refs log tree commit diff
path: root/synapse/handlers/login.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-17 16:44:49 +0100
committerDavid Baker <dave@matrix.org>2015-04-17 16:44:49 +0100
commitf96ab9d18dcebf995700f096792101a490b3a9b8 (patch)
tree56f0a7ec4737b381312ed181fbd41578cd3e002f /synapse/handlers/login.py
parentjust the once would probably be fine (diff)
downloadsynapse-f96ab9d18dcebf995700f096792101a490b3a9b8.tar.xz
make add3pid servlet work
Diffstat (limited to 'synapse/handlers/login.py')
-rw-r--r--synapse/handlers/login.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/handlers/login.py b/synapse/handlers/login.py
index 04f6dbb95e..5c39356d71 100644
--- a/synapse/handlers/login.py
+++ b/synapse/handlers/login.py
@@ -74,3 +74,10 @@ class LoginHandler(BaseHandler):
             user_id, token_id
         )
         yield self.store.flush_user(user_id)
+
+    @defer.inlineCallbacks
+    def add_threepid(self, user_id, medium, address, validated_at):
+        yield self.store.user_add_threepid(
+            user_id, medium, address, validated_at,
+            self.hs.get_clock().time_msec()
+        )
\ No newline at end of file