Unable to access verify_token and confirm endpoints
See original GitHub issueHello,
I am probably doing something silly wrong, but I’ve been unable to use the /reset_password/confirm/ and /reset_password/validate_token/ endpoints.
I am able to post to /reset_password/, generate the token, receive the signal and send the email.
path('api/password_reset/', include('django_rest_passwordreset.urls', namespace='password_reset')),
I have the above in my urls.py
When I go to: http://127.0.0.1:8000/api/password_reset/reset_password/ I can post an email to request a token.
When I go to: http://127.0.0.1:8000/api/password_reset/reset_password/validate_token/ or http://127.0.0.1:8000/api/password_reset/reset_password/confirm/ there is no change from http://127.0.0.1:8000/api/password_reset/reset_password/, this is what I see:

Any idea why this is the case?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (2 by maintainers)
Top Related StackOverflow Question
I had the same problem, but I think I have fixed it. It may just be inaccurate documentation. If you do not use the “password_reset” prefix, they work fine.
I have the following line in my url conf:
path('password-reset/', include('django_rest_passwordreset.urls', namespace='password_reset')),I can then access the endpoints: Generate token:
http://127.0.0.1:8000/may-app/password-reset/Confirm token:http://127.0.0.1:8000/my-app/password-reset/confirmValidate token:http://127.0.0.1:8000/my-app/password-reset/validate_tokenIt seems that generate token actually works for any url that doesn’t match any others.
Hope this helps.
+1 for @SethThoburn
If you look closer,
django_rest_passwordreset.urlsdoes not include anyreset_passwordprefix:The documentation is quite misleading and should be updated. I can create a quick PR if there isn’t an existing one.
Update: I created a PR just now #101.