It this case when attempting to log in with a wrong password that is shorter than 10 characters, the system is displaying an incorrect error message and sending the wrong response code.
The same issue occurs if the password is longer than 10 characters but does not meet the password validation criteria
Precondition: Existing registered user
Local dev environment must be running
From Postman sending the following request to the given endpoint: /login (email: {{registeredEmail}}, password: {{shorterThan10Chars}}
Expected Result: Message: Invalid e-mail or password and 422 response code
Actual Result: Message: "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character" and 400 responce code
It this case when attempting to log in with a wrong password that is shorter than 10 characters, the system is displaying an incorrect error message and sending the wrong response code. The same issue occurs if the password is longer than 10 characters but does not meet the password validation criteria
Precondition: Existing registered user
Expected Result: Message: Invalid e-mail or password and 422 response code
Actual Result: Message: "The password must be at least 10 characters, must contain numeric characters, minimum 1 uppercase letter [A-Z] and minimum 1 special character" and 400 responce code
Please find the attachment![2023-11-03 11_11_11-Login_Wrong_Password - My Workspace](https://github.com/teamcodeyard/tir-api/assets/66072252/944dec28-8231-406e-aa19-cd3e1b1f2751)