summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--synapse/handlers/ui_auth/checkers.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/synapse/handlers/ui_auth/checkers.py b/synapse/handlers/ui_auth/checkers.py
index 9b802ea265..72faa9ae54 100644
--- a/synapse/handlers/ui_auth/checkers.py
+++ b/synapse/handlers/ui_auth/checkers.py
@@ -145,10 +145,9 @@ class _BaseThreepidAuthChecker:
                 )
         elif medium == "email":
             if self.hs.config.threepid_behaviour_email == ThreepidBehaviour.REMOTE:
-                if medium == "email":
-                    threepid = yield identity_handler.threepid_from_creds(
-                        self.hs.config.account_threepid_delegate_email, threepid_creds
-                    )
+                threepid = yield identity_handler.threepid_from_creds(
+                    self.hs.config.account_threepid_delegate_email, threepid_creds
+                )
             elif self.hs.config.threepid_behaviour_email == ThreepidBehaviour.LOCAL:
                 row = yield self.store.get_threepid_validation_session(
                     medium,