backend icon indicating copy to clipboard operation
backend copied to clipboard

[User Registration] Reset Password Email Link Contains Incorrect URI

Open BethanyG opened this issue 5 years ago • 5 comments

Currently (as of PR #187 ) , when a user visits api/v1/auth/password/reset/ and POSTs their email address, a "password reset email" is sent containing a clickable URI that will send a user to a password reset form. The dev URI is incorrect, and will need to point to whichever React component on the front end that is going to handle password reset.

Current URI is:

http://django.codebuddies.org/api/v1/auth/password/reset/confirm/<UID>/<TOKEN>

but will need to be something pointing to the front end, but with the UID & TOKEN in it. The front-end will then need to POST to api/v1/auth/password/reset/confirm/ with the following:

{
    "new_password1": "",
    "new_password2": "",
    "uid": "",
    "token": ""
}

Which will reset the password for whichever user is represented by the UID.

BethanyG avatar Sep 24 '20 07:09 BethanyG

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 24 '20 09:10 stale[bot]

Will update with the right URL when https://github.com/codebuddies/frontend/pull/163 is merged in.

lpatmo avatar Oct 24 '20 20:10 lpatmo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 23 '20 21:11 stale[bot]

Still open.

BethanyG avatar Nov 23 '20 21:11 BethanyG

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 23 '20 22:12 stale[bot]