/api/v1/token-auth does not return json on login failure
One-sentence description
/api/v1/token-auth
returns plain text when wrong credentials are used
Current behaviour / Reproducing the bug
- Post wrong credentials to
/api/v1/token-auth
- "Unauthorized" is returned
Expected behaviour
Json object should be returned