mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-12-05 12:02:31 -05:00
feat: Update insert login_required middleware to allow auth middleware (#1082)
This commit is contained in:
@@ -488,7 +488,7 @@ else:
|
|||||||
|
|
||||||
if GLOBAL_LOGIN_REQUIRED:
|
if GLOBAL_LOGIN_REQUIRED:
|
||||||
# this should go after the AuthenticationMiddleware middleware
|
# 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 = [
|
LOGIN_REQUIRED_IGNORE_PATHS = [
|
||||||
r'/accounts/login/$',
|
r'/accounts/login/$',
|
||||||
r'/accounts/logout/$',
|
r'/accounts/logout/$',
|
||||||
|
|||||||
Reference in New Issue
Block a user