1
0

Drop support for bind param on POST /account/3pid (MSC2290) (#6067)

This commit is contained in:
Andrew Morgan
2020-02-25 14:44:14 +00:00
2 changed files with 1 additions and 4 deletions

1
changelog.d/6067.feature Normal file
View File

@@ -0,0 +1 @@
Remove `bind` parameter from Client Server POST `/account` endpoint as per [MSC2290](https://github.com/matrix-org/matrix-doc/pull/2290/).

View File

@@ -573,10 +573,6 @@ class ThreepidRestServlet(RestServlet):
user_id, threepid["medium"], threepid["address"], threepid["validated_at"]
)
if not requester.app_service and ("bind" in body and body["bind"]):
logger.debug("Binding threepid %s to %s", threepid, user_id)
yield self.identity_handler.bind_threepid(threepid_creds, user_id)
if self.hs.config.shadow_server:
shadow_user = UserID(
requester.user.localpart, self.hs.config.shadow_server.get("hs")