mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 14:34:47 -04:00
Admin api to add an email address (#6789)
This commit is contained in:
parent
f4884444c3
commit
56ca93ef59
6 changed files with 78 additions and 2 deletions
|
@ -58,8 +58,10 @@ class AdminHandler(BaseHandler):
|
|||
ret = await self.store.get_user_by_id(user.to_string())
|
||||
if ret:
|
||||
profile = await self.store.get_profileinfo(user.localpart)
|
||||
threepids = await self.store.user_get_threepids(user.to_string())
|
||||
ret["displayname"] = profile.display_name
|
||||
ret["avatar_url"] = profile.avatar_url
|
||||
ret["threepids"] = threepids
|
||||
return ret
|
||||
|
||||
async def export_user_data(self, user_id, writer):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue