Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add endpoints for resetting a password #39

Closed
cdriehuys opened this issue Oct 9, 2019 · 0 comments · Fixed by #45
Closed

Add endpoints for resetting a password #39

cdriehuys opened this issue Oct 9, 2019 · 0 comments · Fixed by #45
Labels
enhancement New feature or request

Comments

@cdriehuys
Copy link
Owner

As a user of the API, I would like to be able to reset my password if I forget it.

Acceptance

  1. Sending a POST request to /password-reset-requests/ with an email address should send a new password reset token to that email address if the email address has been verified.
  2. If the email address has not been verified or does not exist, no action should be taken.
  3. Sending a POST request to /accounts/password-resets/ with a valid password reset token and new password should set the password for the user associated with the token.
  4. If the token is invalid, an error message should be returned and the password should be unchanged.
  5. If the new password does not pass Django's password validation checks, the password change should be rejected.
@cdriehuys cdriehuys added the enhancement New feature or request label Oct 9, 2019
@cdriehuys cdriehuys changed the title And endpoints for resetting a password Add endpoints for resetting a password Oct 12, 2019
cdriehuys added a commit that referenced this issue Oct 12, 2019
Added an endpoint for users to request a password reset token using any
of their verified email addresses.

Refs #39
cdriehuys added a commit that referenced this issue Oct 12, 2019
The REST interface now includes an endpoint to reset a user's password
if provided a valid reset token.

Refs #39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant