Reset password with invalid mask email. Unclear error message and HTTP status code 401 #272
Labels
bug
Something isn't working
good first issue
Good for newcomers
medium priority
Medium priority issue
Description: According to the requirements when user sends a request to reset the password with an invalid format/mask email user should get a clear error message.
Step to reproduce:
Sent POST request as below:
curl --location 'http://0.0.0.0:8083/api/v1/auth/password/change'
--header 'Content-Type: application/json'
--data-raw '{
"email": "@gmail.com",
"code": "123-123-123",
"password": "password12345"
}'
Expected result: "Email must be valid" and HTTP CODE = 400 ‘Bad request’
Actual result: "message": "User with id = null is not found.", and HTTP Status CODE = 401Unauthorized
The text was updated successfully, but these errors were encountered: