From 89d908883a27678b6179e132c082e617d625ea6b Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 12 Jul 2024 10:50:05 +0200 Subject: [PATCH] feat(routing): streamline account URLs and remove custom login - Integrated two-factor authentication URLs at the root level for cleaner URL structure - Removed redundant custom login template, likely improving maintainability by relying on the default authentication views --- coldbrew/urls.py | 2 +- coldbrew/users/templates/registration/login.html | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 coldbrew/users/templates/registration/login.html diff --git a/coldbrew/urls.py b/coldbrew/urls.py index 427cb45..2cb56c5 100644 --- a/coldbrew/urls.py +++ b/coldbrew/urls.py @@ -21,5 +21,5 @@ from two_factor.urls import urlpatterns as tf_urls urlpatterns = [ path('admin/', admin.site.urls), - path('accounts/', include(tf_urls)), + path('', include(tf_urls)), ] diff --git a/coldbrew/users/templates/registration/login.html b/coldbrew/users/templates/registration/login.html deleted file mode 100644 index 7fa831d..0000000 --- a/coldbrew/users/templates/registration/login.html +++ /dev/null @@ -1,10 +0,0 @@ -{% extends "base_generic.html" %} - -{% block content %} -

Login

-
- {% csrf_token %} - {{ form.as_p }} - -
-{% endblock %} \ No newline at end of file