Hey there! Hope everyone is staying warm and dry with this crazy blizzard! :)
We've been testing out the new Forgot Password functionality, and Mark noticed something interesting. If we send in a Forgot Password request, then we send in another Forgot Password request, and then we try to use the link from the first request to reset the password, we're getting an Ajax error when we submit the form.
According to the API_ENDPOINTS.md documentation, a 404 error for a /registrations PUT request should return a payload of an error message like "User not found". But instead, it seems to be a genuine URL not found type of error:
http://artbot-api.herokuapp.com/registrations
Failed to load resource: the server responded with a status of 404 (Not Found)
Error: Not Found
jqXHR status: 404 Not Found
So it seems that the first password request token is invalidated when the second password request token is requested? Is this desired behavior? If so, how should we handle the error, and differentiate it from the other (more valid) 404 errors?
Thanks!