summary refs log tree commit diff
path: root/synapse/handlers/login.py
diff options
context:
space:
mode:
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