Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POST - Login user - Incorrect Message for Passwords when does not meet the password criteria #8

Open
QArolandczegledi opened this issue Nov 3, 2023 · 0 comments

Comments

@QArolandczegledi
Copy link

QArolandczegledi commented Nov 3, 2023

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

  1. Local dev environment must be running
  2. 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

Please find the attachment
2023-11-03 11_11_11-Login_Wrong_Password - My Workspace

@QArolandczegledi QArolandczegledi changed the title POST - Login user - Incorrect Message for Passwords Shorter than 10 Characters POST - Login user - Incorrect Message for Passwords when does not meet the password criteria Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant