iMerica / dj-rest-auth

Authentication for Django Rest Framework
https://dj-rest-auth.readthedocs.io/en/latest/index.html
MIT License
1.69k stars 319 forks source link

PasswordResetConfirm view does not include UID and Token values in the corresponding fields in the browsable API #489

Open rochdikhalid opened 1 year ago

rochdikhalid commented 1 year ago

After the email is sent, the PasswordResetConfirmView view of the dj-rest-auth package, the uidb64 and token values are not passed automatically to the Token and UID fields in the Browsable API as I see for example in the demo example.

I'm using Django version 4.1.4, and my urls.py code is as follows:

from django.contrib import admin
from django.urls import include, path
from dj_rest_auth.views import PasswordResetConfirmView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('dj-rest-auth/', include('dj_rest_auth.urls')),
    path('dj-rest-auth/registration/', include('dj_rest_auth.registration.urls')),
    path('password-reset/confirm/<uidb64>/<token>/',
         PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
]

Thank you for your help!

RommelTJ commented 11 months ago

Seems related: https://github.com/iMerica/dj-rest-auth/issues/269