mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-06-26 06:51:47 +02:00
feat: Update insert login_required middleware to allow auth middleware (#1082)
This commit is contained in:
parent
02d9188aa1
commit
1b960b28f8
@ -488,7 +488,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/$',
|
||||
|
Loading…
x
Reference in New Issue
Block a user