Azure / api-management-developer-portal

Developer portal provided by the Azure API Management service.
MIT License
488 stars 318 forks source link

Reset password is not showing proper message #1344

Open Sachin4dotnet opened 3 years ago

Sachin4dotnet commented 3 years ago

Bug description

Whenever we are trying to reset password, and then entering wrong email address, it should response that the email address is incorrect. But instead, it is always refreshing the captcha, so user frustrates by entering captchas.

Reproduction steps

  1. Proceed to API Manager
  2. Complete the Sign up with a new email address with activating from email
  3. Proceed to API Manager
  4. Click 'forgot password'
  5. Enter email address (may be wrong email address)
  6. Enter Captcha
  7. Press Request Reset
  8. Nothing Happens - Captcha forces user to keep entering - and no email with reset instructions is sent....

Expected behavior

It must inform user that entered email address is not valid. If captcha is not valid then also it should be informed.

Environment

Additional context

I can see the validation message is coming from API like below but it is not showing in Validation summary.

{
    "code": "ValidationError",
    "message": "Captcha validation failed.",
    "details": [
        {
            "target": "Captcha",
            "message": "Text entered doesn't match text on the picture. Please try again."
        }
    ]
}
{
    "code": "ValidationError",
    "message": "One or more fields contain incorrect values:",
    "details": [
        {
            "code": "ResourceNotFound",
            "target": "to",
            "message": "User not found"
        }
    ]
}
ghost commented 3 years ago

@Sachin4dotnet, thank you for opening this issue. We will triage it within the next few business days.

ghost commented 3 years ago

@Sachin4dotnet, thank you for reporting the bug.