mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 13:46:02 -04:00
Add /account/3pid/delete endpoint
Also fix a typo in a comment
This commit is contained in:
parent
b7f4f902fa
commit
0c88ab1844
3 changed files with 57 additions and 1 deletions
|
@ -617,6 +617,17 @@ class AuthHandler(BaseHandler):
|
|||
self.hs.get_clock().time_msec()
|
||||
)
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def delete_threepid(self, user_id, medium, address):
|
||||
# 'Canonicalise' email addresses as per above
|
||||
if medium == 'email':
|
||||
address = address.lower()
|
||||
|
||||
ret = yield self.store.user_delete_threepid(
|
||||
user_id, medium, address,
|
||||
)
|
||||
defer.returnValue(ret)
|
||||
|
||||
def _save_session(self, session):
|
||||
# TODO: Persistent storage
|
||||
logger.debug("Saving session %s", session)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue