teamcodeyard / tir-api

Web gateway for project TIR
1 stars 1 forks source link

POST- Create User- Password is validated in some cases even if the email is invalid #6

Open QArolandczegledi opened 8 months ago

QArolandczegledi commented 8 months ago

Steps to reproduce the issue:

  1. Local dev environment must be running
  2. From Postman sending the following request to the given endpoint(test data -> email: #&@bnm, password: helloworld)

Expected Result: "message" : "Invalid e-mail address"

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"

Note: I assume the 'Invalid e-mail address' is the expected behavior here, but occasionally it returns the password validation error message.

Update: I tried with a valid password and I got only the invalid e-mail address error message. As a result so I would say the validation order is different between the password and the email..

Please find the attachment 2023-10-30 18_28_42-invalid_email_bug

GCsabi commented 8 months ago

Flaky Requests belonging to this issue: