Skip to content

Commit

Permalink
Remove wagtail utility routes for authentication (#12655)
Browse files Browse the repository at this point in the history
* Remove wagtail utility routes for authentication

* Remove unused imports after `_util` route removal

---------

Co-authored-by: Rob DiVincenzo <[email protected]>
  • Loading branch information
ramram-mf and robdivincenzo authored Aug 26, 2024
1 parent dda5f64 commit fd1c05c
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions network-api/networkapi/utility/watail_core_url_override.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# TO ALLOW NON-SLUG URLS FROM MAKING IT INTO THE serve() FUNCTION

from django.conf import settings
from django.contrib.auth import views as auth_views
from django.urls import path, re_path
from django.urls import re_path
from wagtail import views
from wagtail.coreutils import WAGTAIL_APPEND_SLASH

Expand All @@ -29,16 +28,6 @@


urlpatterns = [
path(
"_util/authenticate_with_password/<int:page_view_restriction_id>/<int:page_id>/",
views.authenticate_with_password,
name="wagtailcore_authenticate_with_password",
),
path(
"_util/login/",
auth_views.LoginView.as_view(template_name=WAGTAIL_FRONTEND_LOGIN_TEMPLATE),
name="wagtailcore_login",
),
# Front-end page views are handled through Wagtail's core.views.serve
# mechanism
re_path(serve_pattern, views.serve, name="wagtail_serve"),
Expand Down

0 comments on commit fd1c05c

Please sign in to comment.