We need a page that allows a user to reset their password by email.
The associated api endpoint is the password_reset (/api/v1/password_reset/)
I believe this endpoint accepts a single field ("email") in the following form:
{
"email": "test@test.com"
}
but please test and confirm. If the email is associated with a user account (you can create demo users in the Django admin dash) you should get a 200 response with "message": "Password reset link has been sent to your email." Otherwise, the api should return a 404 with "error": "User not found."
Once the request is submitted, let's display a message that says something like "Please check your email for password reset instructions."
Let's also add a link to this password reset page on the Login page with the text "Forgot Password?"
We need a page that allows a user to reset their password by email.
The associated api endpoint is the
password_reset
(/api/v1/password_reset/
)I believe this endpoint accepts a single field ("email") in the following form:
but please test and confirm. If the email is associated with a user account (you can create demo users in the Django admin dash) you should get a 200 response with
"message": "Password reset link has been sent to your email."
Otherwise, the api should return a 404 with"error": "User not found."