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:
parent
928cd4a3d0
commit
89d908883a
2 changed files with 1 additions and 11 deletions
|
@ -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)),
|
||||
]
|
||||
|
|
|
@ -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 %}
|
Loading…
Reference in a new issue