Fix the API so that incorrect logins get a JSON error
Currently, when the API is used with an incorrect login, an HTML login page is sent back, rather than a JSON error message. This is ridiculous - clearly for consistency an error message should be sent.
1
vote
