GET/user/login

Log in a user

Authenticates a user by validating their login credentials. Supply username and password as query parameters to attempt login; the password is sent as clear text. The response contains a string with the login result.

2 parameters
usernamestringoptional
The username to use for login.
passwordstringoptional
The password to use for login, sent as clear text.

3 status codes
200Returns a string containing the login result.
400Returned when the supplied username or password is invalid.
defaultReturned when an unexpected error occurs.

Error handling

A 400 is returned when the supplied username or password is invalid. The username query parameter identifies the account, and the password query parameter supplies its login password.