diff options
author | David Robertson <davidr@element.io> | 2022-08-23 12:40:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-23 11:40:00 +0000 |
commit | 956e015413d3da417c1058e3e72d97b3d1bc8170 (patch) | |
tree | 931927e3736155ea068c38254726b6f03ed51c29 /synapse/app | |
parent | Update changelog (diff) | |
download | synapse-956e015413d3da417c1058e3e72d97b3d1bc8170.tar.xz |
Drop support for delegating email validation, round 2 (#13596)
Diffstat (limited to 'synapse/app')
-rw-r--r-- | synapse/app/homeserver.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/app/homeserver.py b/synapse/app/homeserver.py index d98012adeb..68993d91a9 100644 --- a/synapse/app/homeserver.py +++ b/synapse/app/homeserver.py @@ -44,7 +44,6 @@ from synapse.app._base import ( register_start, ) from synapse.config._base import ConfigError, format_config_error -from synapse.config.emailconfig import ThreepidBehaviour from synapse.config.homeserver import HomeServerConfig from synapse.config.server import ListenerConfig from synapse.federation.transport.server import TransportLayerServer @@ -202,7 +201,7 @@ class SynapseHomeServer(HomeServer): } ) - if self.config.email.threepid_behaviour_email == ThreepidBehaviour.LOCAL: + if self.config.email.can_verify_email: from synapse.rest.synapse.client.password_reset import ( PasswordResetSubmitTokenResource, ) |