Password reset error messages inconsistent

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

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?

1 Like