summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/capabilities.py
diff options
context:
space:
mode:
authorNeil Johnson <neil@matrix.org>2019-01-29 18:04:56 +0000
committerNeil Johnson <neil@matrix.org>2019-01-29 18:04:56 +0000
commite4bef9d470aa99cbb06b0a19fcafc5bd32008207 (patch)
tree5351f700240c376c0fbb9caaadbc6ffefd645e74 /synapse/rest/client/v2_alpha/capabilities.py
parentupdate to reflect broadening scope (diff)
downloadsynapse-e4bef9d470aa99cbb06b0a19fcafc5bd32008207.tar.xz
rework format of change password capability
Diffstat (limited to 'synapse/rest/client/v2_alpha/capabilities.py')
-rw-r--r--synapse/rest/client/v2_alpha/capabilities.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/capabilities.py b/synapse/rest/client/v2_alpha/capabilities.py
index 08df941b5f..756c2dbdec 100644
--- a/synapse/rest/client/v2_alpha/capabilities.py
+++ b/synapse/rest/client/v2_alpha/capabilities.py
@@ -55,7 +55,9 @@ class CapabilitiesRestServlet(RestServlet):
                             "state-v2-test": "unstable",
                         }
                     },
-                    "m.change_password": change_password,
+                    "m.change_password": {
+                        "enabled": change_password,
+                    },
                 }
             })
         )