|
1 | | -from django.urls import path, re_path |
| 1 | +from django.urls import path, re_path, include |
2 | 2 |
|
3 | 3 | from users.views import ( |
4 | 4 | AchievementDetail, |
|
34 | 34 | path("users/<int:pk>/", UserDetail.as_view()), |
35 | 35 | path("users/<int:pk>/set_onboarding_stage/", SetUserOnboardingStage.as_view()), |
36 | 36 | path("users/current/", CurrentUser.as_view()), |
37 | | - # path("users/current/email_reset_password/", EmailResetPassword.as_view()), |
38 | 37 | # todo: change password view |
39 | 38 | path("users/current/programs/", CurrentUserPrograms.as_view()), |
40 | 39 | path("users/current/programs/tags/", CurrentUserProgramsTags.as_view()), |
|
57 | 56 | VerifyEmail.as_view(), |
58 | 57 | name="account_confirm_email", |
59 | 58 | ), |
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 | + ), |
70 | 63 | ] |
0 commit comments