Drop support for bind param on POST /account/3pid (MSC2290) (#6067)
This commit is contained in:
1
changelog.d/6067.feature
Normal file
1
changelog.d/6067.feature
Normal 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/).
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user