Skip to content

Commit

Permalink
Update views and urlpatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Apr 23, 2024
1 parent bf8ea40 commit 9c1259b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 32 deletions.
19 changes: 0 additions & 19 deletions backend/core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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/<uidb64>/<token>/",
FirstConnexionPasswordConfirmView.as_view(),
name="first_connexion_confirm",
),
]

if DEBUG:
Expand Down
6 changes: 0 additions & 6 deletions backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down Expand Up @@ -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]]:
Expand Down
7 changes: 0 additions & 7 deletions backend/iam/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
from django.urls import path

from core.views import FirstConnexionPasswordConfirmView

from .views import (
LoginView,
ChangePasswordView,
Expand All @@ -25,9 +23,4 @@
name="password-reset-confirm",
),
path("set-password/", SetPasswordView.as_view(), name="set-password"),
path(
"first_connexion/<uidb64>/<token>/",
FirstConnexionPasswordConfirmView.as_view(),
name="first_connexion_confirm",
),
]

0 comments on commit 9c1259b

Please sign in to comment.