Be consistent when associating keys with login types for registration/login.

This commit is contained in:
Kegan Dougal 2014-09-15 15:38:29 +01:00
parent 14bc4ed59f
commit 2c00e1ecd9
4 changed files with 4 additions and 4 deletions

View file

@ -162,7 +162,7 @@ class SynapseCmd(cmd.Cmd):
"type": "m.login.password"
}
if "userid" in args:
body["user_id"] = args["userid"]
body["user"] = args["userid"]
if password:
body["password"] = password