Update insert login_required middleware to allow auth middleware

This commit is contained in:
David Chua 2024-10-09 14:31:33 +00:00
parent 6bbd4c2809
commit d2d6a7c8c6

View File

@ -484,7 +484,7 @@ else:
if GLOBAL_LOGIN_REQUIRED:
# this should go after the AuthenticationMiddleware middleware
MIDDLEWARE.insert(5, "login_required.middleware.LoginRequiredMiddleware")
MIDDLEWARE.insert(6, "login_required.middleware.LoginRequiredMiddleware")
LOGIN_REQUIRED_IGNORE_PATHS = [
r'/accounts/login/$',
r'/accounts/logout/$',