/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

  1. Post wrong credentials to /api/v1/token-auth
  2. "Unauthorized" is returned

Expected behaviour

Json object should be returned