summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-05-22 11:59:48 +0100
committerErik Johnston <erik@matrix.org>2015-05-22 11:59:48 +0100
commit254aa3c986256de0c71d36078682c7904e27145b (patch)
tree19eaa9bb945bed44884a27e7ab0d137b7d4d57fd /scripts
parentMerge branch 'master' of github.com:matrix-org/synapse into develop (diff)
downloadsynapse-254aa3c986256de0c71d36078682c7904e27145b.tar.xz
Revert register_new_matrix_user to use v1 api
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/register_new_matrix_user5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/register_new_matrix_user b/scripts/register_new_matrix_user
index 0ca83795a3..4a520bdb5d 100755
--- a/scripts/register_new_matrix_user
+++ b/scripts/register_new_matrix_user
@@ -33,9 +33,10 @@ def request_registration(user, password, server_location, shared_secret):
     ).hexdigest()
 
     data = {
-        "username": user,
+        "user": user,
         "password": password,
         "mac": mac,
+        "type": "org.matrix.login.shared_secret",
     }
 
     server_location = server_location.rstrip("/")
@@ -43,7 +44,7 @@ def request_registration(user, password, server_location, shared_secret):
     print "Sending registration request..."
 
     req = urllib2.Request(
-        "%s/_matrix/client/v2_alpha/register" % (server_location,),
+        "%s/_matrix/client/api/v1/register" % (server_location,),
         data=json.dumps(data),
         headers={'Content-Type': 'application/json'}
     )