mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 20:26:48 +00:00
feat(accounts): Django's LoginRequiredMiddleware replaces the package
django-login-required-middleware is dropped; Django 5.1+ ships the same middleware. The login page is already marked login_not_required by Django; email_otp gets the decorator, which replaces LOGIN_REQUIRED_IGNORE_VIEW_NAMES. The datasource still requires login. Existing settings.py files still name the old middleware. A system check (accounts.E002) stops migrate and the server until MIDDLEWARE uses Django's middleware, instead of an ImportError at startup; the README has the steps. A new matrix test walks every URL anonymously: everything outside a short allowlist (login pages, the OpenAPI docs) sends the visitor to the login page, and API views deny with 401/403. It passed with the old middleware first and passes unchanged now.
This commit is contained in:
parent
920f318601
commit
e94d69a524
7 changed files with 80 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
Django==5.2.17
|
||||
django_bootstrap5==26.2
|
||||
django-bootstrap-icons==0.9.0
|
||||
django-login-required-middleware==0.9.0
|
||||
django-otp==1.7.3
|
||||
django-qr-code==4.2.0
|
||||
django-auth-ldap==5.3.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue