Resolve "/api/v1/token-auth does not return json on login failure"
Closes #975 (closed)
Previous behaviour
Steps to reproduce:
- Post wrong credentials to
/api/v1/token-auth
- "Unauthorized" is returned
New behaviour
Steps to validate that it works:
- Post wrong credentials to
/api/v1/token-auth
-
{"error": "Unauthorized"}
is returned