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

fix url path rest_password #644

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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'),
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