mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 21:54:53 -04:00
Add endpoint to get threepids from server
This commit is contained in:
parent
4eea5cf6c2
commit
117f35ac4a
2 changed files with 23 additions and 0 deletions
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue