Fix API authentication returns 400 when providing the wrong credentials
Closes #959 (closed)
Previous behaviour
Steps to reproduce:
- Authenticate at
/api/v1/token-auth
- Get a 400
New behaviour
Steps to validate that it works:
- Authenticate at
/api/v1/token-auth
- Get a 401