diff --git a/docs/client-server/howto.rst b/docs/client-server/howto.rst
index ec941edddd5840395b7e3b1fac47b93d90d49b1f..9913e8db1e9d4c6e3a6b27b3067603d73a199be9 100644
--- a/docs/client-server/howto.rst
+++ b/docs/client-server/howto.rst
@@ -31,7 +31,7 @@ Registration
 The aim of registration is to get a user ID and access token which you will need
 when accessing other APIs::
 
-    curl -XPOST -d '{"user_id":"example", "password":"wordpass"}' "http://localhost:8008/_matrix/client/api/v1/register"
+    curl -XPOST -d '{"user":"example", "password":"wordpass", "type":"m.login.password"}' "http://localhost:8008/_matrix/client/api/v1/register"
 
     {
         "access_token": "QGV4YW1wbGU6bG9jYWxob3N0.AqdSzFmFYrLrTmteXc", 
diff --git a/jsfiddles/example_app/demo.js b/jsfiddles/example_app/demo.js
index ad79fcca26adb8d988a8e9bcb369552ec8bfd5b9..13c9c2b3396ad23b760b072a095ebaba9aa1bdea 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);
diff --git a/jsfiddles/register_login/demo.js b/jsfiddles/register_login/demo.js
index fffa9e0551c416c1f9d96be0c6fad706a62362f9..2e6957b63129cec4126bc27ed8b677a41f053c49 100644
--- a/jsfiddles/register_login/demo.js
+++ b/jsfiddles/register_login/demo.js
@@ -14,7 +14,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) {
             showLoggedIn(data);