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
Description:
Currently, when a user enters an unregistered email in the forget password functionality, the server responds with a 500 Internal Server Error instead of a proper 404 Not Found message stating that the email is not registered. This happens because the code attempts to access user._id before checking if user is null.
Steps to Reproduce:
Send a POST request to the forget password endpoint with an unregistered email.
Observe that the server returns a 500 Internal Server Error with a message Cannot read properties of null (reading '_id') instead of a proper 404 response.
Expected Behavior:
The server should return a 404 Not Found with a message: No account with this email has been registered.
How i khow my email is in correct
The text was updated successfully, but these errors were encountered:
"Hi, I'd love to contribute to this issue! Could you please confirm if it's still unassigned? If so, I’d be happy to work on it and submit a fix. Looking forward to your response!" @Rk-2005
Uh oh!
There was an error while loading. Please reload this page.
Description:
Currently, when a user enters an unregistered email in the forget password functionality, the server responds with a 500 Internal Server Error instead of a proper 404 Not Found message stating that the email is not registered. This happens because the code attempts to access user._id before checking if user is null.
Steps to Reproduce:
Send a POST request to the forget password endpoint with an unregistered email.
Observe that the server returns a 500 Internal Server Error with a message Cannot read properties of null (reading '_id') instead of a proper 404 response.
Expected Behavior:
The server should return a 404 Not Found with a message: No account with this email has been registered.
How i khow my email is in correct
The text was updated successfully, but these errors were encountered: