From aa036f7ef1131ea818391b456709f05b223f832a Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Thu, 14 Apr 2016 18:03:55 +0100 Subject: [PATCH] The /register parameter for username is "username", not "user" --- supporting-docs/howtos/client-server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/supporting-docs/howtos/client-server.rst b/supporting-docs/howtos/client-server.rst index 26a2f7fc..b3a4d74d 100644 --- a/supporting-docs/howtos/client-server.rst +++ b/supporting-docs/howtos/client-server.rst @@ -32,7 +32,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":"example", "password":"wordpass", "auth": {"type":"m.login.dummy"}}' "https://localhost:8008/_matrix/client/r0/register" + curl -XPOST -d '{"username":"example", "password":"wordpass", "auth": {"type":"m.login.dummy"}}' "https://localhost:8008/_matrix/client/r0/register" { "access_token": "QGV4YW1wbGU6bG9jYWxob3N0.AqdSzFmFYrLrTmteXc",