Merge pull request #95 from matrix-org/rav/login-api-fixes

Clean up some untruths in the login api doc
pull/977/head
Kegsay 9 years ago
commit 6a70828400

@ -33,17 +33,21 @@ paths:
type: object type: object
example: |- example: |-
{ {
"username": "cheeky_monkey", "type": "m.login.pasword",
"user": "cheeky_monkey",
"password": "ilovebananas" "password": "ilovebananas"
} }
properties: properties:
username: type:
type: string
description: The login type being used. Currently only "m.login.password" is supported.
user:
type: string type: string
description: The fully qualified user ID or just local part of the user ID, to log in. description: The fully qualified user ID or just local part of the user ID, to log in.
password: password:
type: string type: string
description: The user's password. description: The user's password.
required: ["username", "password"] required: ["type", "user", "password"]
responses: responses:
200: 200:
description: The user has been authenticated. description: The user has been authenticated.
@ -78,6 +82,15 @@ paths:
home_server: home_server:
type: string type: string
description: The hostname of the Home Server on which the account has been registered. description: The hostname of the Home Server on which the account has been registered.
400:
description: |-
Part of the request was invalid. For example, the login type may not be recognised.
examples:
application/json: |-
{
"errcode": "M_UNKNOWN",
"error": "Bad login type."
}
403: 403:
description: |- description: |-
The login attempt failed. For example, the password may have been incorrect. The login attempt failed. For example, the password may have been incorrect.

Loading…
Cancel
Save