summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2015-04-17 17:20:18 +0100
committerDavid Baker <dave@matrix.org>2015-04-17 17:20:18 +0100
commit117f35ac4ac4f8d344ae1efbc629a3f8bc25f459 (patch)
tree3813c1155b09bb49b86976eae884b2e8eae2a3f2 /synapse/storage/registration.py
parentpep8 (diff)
downloadsynapse-117f35ac4ac4f8d344ae1efbc629a3f8bc25f459.tar.xz
Add endpoint to get threepids from server
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py

index 8f62e5c6f2..08d60f0817 100644 --- a/synapse/storage/registration.py +++ b/synapse/storage/registration.py
@@ -186,3 +186,14 @@ class RegistrationStore(SQLBaseStore): "validated_at": validated_at, "added_at": added_at, }) + + @defer.inlineCallbacks + def user_get_threepids(self, user_id): + ret = yield self._simple_select_list( + "user_threepids", { + "user": user_id + }, + ['medium', 'address', 'validated_at', 'added_at'], + 'user_get_threepids' + ) + defer.returnValue(ret) \ No newline at end of file