Auth0 Home Blog Docs

Password reset error messages inconsistent

password-reset

#1

I’m trying to create a custom Password Reset page. Here is the relevant part of the code:

request.onload = function() {
  if (request.status >= 200 && request.status < 400) {
    // Success!
  } else {
    // We reached our target server, but it returned an error
    console.log(request);
  }
};

And the issue I’m facing - it returns a descriptive error message when I enter, for example, a weak password, but returns a plain “Internal Server Error” when I enter a not matching password and confirmation password.


41%20AM

Is there a way to get the correct error messages for all possible cases?
Thanks