Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions dj_rest_auth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

urlpatterns = [
# URLs that do not require a session or valid token
re_path(r'password/reset/?$', PasswordResetView.as_view(), name='rest_password_reset'),
re_path(r'password/reset/confirm/?$', PasswordResetConfirmView.as_view(), name='rest_password_reset_confirm'),
re_path(r'login/?$', LoginView.as_view(), name='rest_login'),
path('password/reset/', PasswordResetView.as_view(), name='rest_password_reset'),
path('password/reset/confirm/<uidb64>/<token>/', PasswordResetConfirmView.as_view(), name='password_reset_confirm'),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Password Reset Confirm view accepts the UID and token in request Body instead of Path. I am not sure what is the motivation behind this change.

path('login/', LoginView.as_view(), name='rest_login'),


# URLs that require a user to be logged in with a valid session / token.
re_path(r'logout/?$', LogoutView.as_view(), name='rest_logout'),
re_path(r'user/?$', UserDetailsView.as_view(), name='rest_user_details'),
Expand Down