xi / django-mfa3

multi factor authentication for django
MIT License
22 stars 8 forks source link

Fix templates #22

Closed lsaavedr closed 3 months ago

lsaavedr commented 3 months ago

With this change the templates look the same as the admin login interface with no extra templates.

You can set the root url.py like this

from mfa.views import LoginView

urlpatterns = [
    path(
        "admin/login/",
        LoginView.as_view(template_name="admin/login.html"),
        name="login",
    ),
...
xi commented 3 months ago

Thanks for the proposal. However, I intentionally left opinionated templates our of the repository. For example, it wouldn't make sense to use these templates for most of my personal project.

If you think that other people could benefit from these templates, you could publish them as a separate package. I would happily link to that package if you want to. But I would rather keep this out of this repo.

lsaavedr commented 3 months ago