Closed griendt closed 4 years ago
When not providing the right fields in the login request (username and password), the response should be 422 Unprocessable Entity.
username
password
422 Unprocessable Entity
The backend simply attempts authentication with the info it has, which, if incomplete, always returns a 401 Unauthorized response code.
401 Unauthorized
Include validation :)
login
Expected Behavior
When not providing the right fields in the login request (
username
andpassword
), the response should be422 Unprocessable Entity
.Current Behavior
The backend simply attempts authentication with the info it has, which, if incomplete, always returns a
401 Unauthorized
response code.Failure Information
Possible Solution
Include validation :)
Steps to Reproduce
login
endpoint with either theusername
orpassword
field missing (or both).