summary refs log tree commit diff
path: root/jsfiddles/example_app/demo.js
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2014-10-06 14:52:46 +0100
committerKegan Dougal <kegan@matrix.org>2014-10-06 14:52:46 +0100
commit3ef2c946d58034173f4fb54b4708ac108f1cf3f7 (patch)
treed4a78d8714cbe156bfd7bc615fd6e473bc838c0c /jsfiddles/example_app/demo.js
parentAdd more section headings. (diff)
downloadsynapse-3ef2c946d58034173f4fb54b4708ac108f1cf3f7.tar.xz
Update JSFiddles/how-to to support the new registration format.
Diffstat (limited to 'jsfiddles/example_app/demo.js')
-rw-r--r--jsfiddles/example_app/demo.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jsfiddles/example_app/demo.js b/jsfiddles/example_app/demo.js
index ad79fcca26..13c9c2b339 100644
--- a/jsfiddles/example_app/demo.js
+++ b/jsfiddles/example_app/demo.js
@@ -110,7 +110,7 @@ $('.register').live('click', function() {
         url: "http://localhost:8008/_matrix/client/api/v1/register",
         type: "POST",
         contentType: "application/json; charset=utf-8",
-        data: JSON.stringify({ user_id: user, password: password }),
+        data: JSON.stringify({ user: user, password: password, type: "m.login.password" }),
         dataType: "json",
         success: function(data) {
             onLoggedIn(data);