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
This commit is contained in:
Kumi 2024-07-12 10:50:05 +02:00
parent 928cd4a3d0
commit 89d908883a
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 1 additions and 11 deletions

View file

@ -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)),
]

View file

@ -1,10 +0,0 @@
{% extends "base_generic.html" %}
{% block content %}
<h2>Login</h2>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
<button type="submit">Login</button>
</form>
{% endblock %}