diff --git a/backend/core/urls.py b/backend/core/urls.py index 5be718e5c7..fb5cfd9908 100644 --- a/backend/core/urls.py +++ b/backend/core/urls.py @@ -58,25 +58,6 @@ path("agg_data/", get_agg_data, name="get_agg_data"), path("composer_data/", get_composer_data, name="get_composer_data"), path("i18n/", include("django.conf.urls.i18n")), - path( - "password_reset/done/", - auth_views.PasswordResetDoneView.as_view( - template_name="registration/password_reset_done.html" - ), - name="password_reset_done", - ), - path( - "reset/done/", - auth_views.PasswordResetCompleteView.as_view( - template_name="registration/password_reset_complete.html" - ), - name="password_reset_complete", - ), - path( - "first_connexion///", - FirstConnexionPasswordConfirmView.as_view(), - name="first_connexion_confirm", - ), ] if DEBUG: diff --git a/backend/core/views.py b/backend/core/views.py index b89f111a07..8d04997b82 100644 --- a/backend/core/views.py +++ b/backend/core/views.py @@ -10,7 +10,6 @@ from rest_framework.parsers import FileUploadParser from rest_framework.request import Request from rest_framework.views import APIView -from core.forms import FirstConnexionConfirmForm, ResetConfirmForm from core.models import AppliedControl from core.helpers import * @@ -1402,11 +1401,6 @@ def get_build(request): # NOTE: Important functions/classes from old views.py, to be reviewed -class FirstConnexionPasswordConfirmView(PasswordResetConfirmView): - template_name = "registration/first_connexion_confirm.html" - form_class = FirstConnexionConfirmForm - - def generate_html( compliance_assessment: ComplianceAssessment, ) -> Tuple[str, list[Evidence]]: diff --git a/backend/iam/urls.py b/backend/iam/urls.py index 37ac4662d7..7c86b7fdd9 100644 --- a/backend/iam/urls.py +++ b/backend/iam/urls.py @@ -1,7 +1,5 @@ from django.urls import path -from core.views import FirstConnexionPasswordConfirmView - from .views import ( LoginView, ChangePasswordView, @@ -25,9 +23,4 @@ name="password-reset-confirm", ), path("set-password/", SetPasswordView.as_view(), name="set-password"), - path( - "first_connexion///", - FirstConnexionPasswordConfirmView.as_view(), - name="first_connexion_confirm", - ), ]