From 359c3c9776a65d944eaa34f0c679404314bd9d65 Mon Sep 17 00:00:00 2001 From: Laurent Date: Tue, 2 Apr 2024 15:17:34 +0200 Subject: [PATCH] Adds missing urls to make the password reset work --- padelclub_backend/urls.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/padelclub_backend/urls.py b/padelclub_backend/urls.py index eae8bf9..06c8e17 100644 --- a/padelclub_backend/urls.py +++ b/padelclub_backend/urls.py @@ -36,19 +36,17 @@ router.register(r'player-registrations', views.PlayerRegistrationViewSet) urlpatterns = [ - re_path(r'^password-reset/$', - TemplateView.as_view(template_name="password_reset.html"), - name='password-reset'), - re_path(r'^password-reset/confirm/$', - TemplateView.as_view(template_name="password_reset_confirm.html"), - name='password-reset-confirm'), - path('api/', include(router.urls)), path("", include("tournaments.urls")), path('admin/', admin.site.urls), path('api-auth/', include('rest_framework.urls')), - path('api/dj-rest-auth/', include('dj_rest_auth.urls')), + path('api/plus/api-token-auth/', obtain_auth_token, name='api_token_auth'), path("api/plus/user-by-token/", views.user_by_token, name="user_by_token"), path("api/plus/change-password/", views.ChangePasswordView.as_view(), name="change_password"), + + # forgotten password + path('api/dj-rest-auth/', include('dj_rest_auth.urls')), + path('dj-auth/', include('django.contrib.auth.urls')), + ]