summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2023-02-13 12:12:48 +0000
committerGitHub <noreply@github.com>2023-02-13 12:12:48 +0000
commitbdccfd24773d7482ae497263634312640dab01d1 (patch)
treec295c637e9f5e1e97f70f0bac4cb8ca724419dda /synapse/handlers/auth.py
parentApply logging from hotfixes branch to develop (#15054) (diff)
downloadsynapse-bdccfd24773d7482ae497263634312640dab01d1.tar.xz
Refactor arguments of `try_unbind_threepid(_with_id_server)` from dict to separate args (#15053)
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 30f2d46c3c..57a6854b1e 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -1593,9 +1593,8 @@ class AuthHandler:
         if medium == "email":
             address = canonicalise_email(address)
 
-        identity_handler = self.hs.get_identity_handler()
-        result = await identity_handler.try_unbind_threepid(
-            user_id, {"medium": medium, "address": address, "id_server": id_server}
+        result = await self.hs.get_identity_handler().try_unbind_threepid(
+            user_id, medium, address, id_server
         )
 
         await self.store.user_delete_threepid(user_id, medium, address)