ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

The login request parameters shouldn't be wrapped in an `auth` object #178

Closed mujx closed 7 years ago

mujx commented 7 years ago

According to the spec the login request has the following format

{
  "type": "m.login.password",
  "user": "cheeky_monkey",
  "password": "ilovebananas"
}

but instead we use

{
  "auth": {
      "type": "m.login.password",
      "user": "cheeky_monkey",
      "password": "ilovebananas"
  }
}