You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When sending a PUT request (to update a password) to the reset password route (/simple-jwt-login/v1/user/reset_password) the response is not consistent. when the code provided by the user (which is the code sent by the same route with a POST request) is correct I got a response in the format:
{
"success": true,
"message": "User Password has been changed."
}
but when the code entered by the user is incorrect I got a response in the format :
What did you expect to happen? What actually happened?
As you can see, I got tow different responses for the same request with different params, if the code is correct I got a response, but if it is incorrect I got a different response. As a developer I will expect the same response with different params, having different responses will make my work hard by building on an unpredictable responses..
-->
The text was updated successfully, but these errors were encountered:
Bug Report
Plugin Version
3.5.3
WordPress Version
6.4.2
Bug description
When sending a PUT request (to update a password) to the reset password route (/simple-jwt-login/v1/user/reset_password) the response is not consistent. when the code provided by the user (which is the code sent by the same route with a POST request) is correct I got a response in the format:
but when the code entered by the user is incorrect I got a response in the format :
What did you expect to happen? What actually happened?
As you can see, I got tow different responses for the same request with different params, if the code is correct I got a response, but if it is incorrect I got a different response. As a developer I will expect the same response with different params, having different responses will make my work hard by building on an unpredictable responses..
-->
The text was updated successfully, but these errors were encountered: