Skip to content

Commit 86bc12d

Browse files
committed
Move django_rest_passwordreset.urls to users app
1 parent 887486b commit 86bc12d

2 files changed

Lines changed: 9 additions & 16 deletions

File tree

procollab/urls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@
5050
path("api/token/", TokenObtainPairView.as_view(), name="token_obtain_pair"),
5151
path("api/token/refresh/", TokenRefreshView.as_view(), name="token_refresh"),
5252
path("api/token/verify/", TokenVerifyView.as_view(), name="token_verify"),
53-
path(
54-
"reset_password/",
55-
include("django_rest_passwordreset.urls", namespace="password_reset"),
56-
),
53+
# path(
54+
# "reset_password/",
55+
# include("django_rest_passwordreset.urls", namespace="password_reset"),
56+
# ),
5757
path("", include("metrics.urls", namespace="metrics")),
5858
]
5959

users/urls.py

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from django.urls import path, re_path
1+
from django.urls import path, re_path, include
22

33
from users.views import (
44
AchievementDetail,
@@ -34,7 +34,6 @@
3434
path("users/<int:pk>/", UserDetail.as_view()),
3535
path("users/<int:pk>/set_onboarding_stage/", SetUserOnboardingStage.as_view()),
3636
path("users/current/", CurrentUser.as_view()),
37-
# path("users/current/email_reset_password/", EmailResetPassword.as_view()),
3837
# todo: change password view
3938
path("users/current/programs/", CurrentUserPrograms.as_view()),
4039
path("users/current/programs/tags/", CurrentUserProgramsTags.as_view()),
@@ -57,14 +56,8 @@
5756
VerifyEmail.as_view(),
5857
name="account_confirm_email",
5958
),
60-
# re_path(
61-
# r"^password-reset/",
62-
# ResetCurrentUserPassword.as_view(),
63-
# name="password_reset_sent",
64-
# ),
65-
# re_path(
66-
# r"^password-reset/(?P<key>[-:\w]+)/$",
67-
# ResetCurrentUserPassword.as_view(),
68-
# name="password_reset",
69-
# ),
59+
path(
60+
"reset_password/",
61+
include("django_rest_passwordreset.urls", namespace="password_reset"),
62+
),
7063
]

0 commit comments

Comments
 (0)