fix: Forbid removing emails if they're required to register

This commit is contained in:
Ginger
2026-04-23 13:17:48 -04:00
parent 8171e3d614
commit 567d809efe
5 changed files with 30 additions and 4 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ pub(crate) async fn get_capabilities_route(
// Only allow 3pid changes if SMTP is configured
capabilities.thirdparty_id_changes = ThirdPartyIdChangesCapability {
enabled: services.mailer.mailer().is_some(),
enabled: services.threepid.email_requirement().may_change(),
};
capabilities.get_login_token = GetLoginTokenCapability {