Make two-factor app non-optional.
Rationale: Adding logic to decide on the login view to use, and reliably disable the default login view if 2fa is enabled, adds unnecessary complexity, compared to django-two-factor-auth being a quite lightweight dependency.
Please register or sign in to comment