Browse Source

allow login and logout in maintenance mode #14166

Abhimanyu Saharan 2 năm trước cách đây
mục cha
commit
dd5e20aa1a
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      netbox/netbox/settings.py

+ 3 - 0
netbox/netbox/settings.py

@@ -502,6 +502,9 @@ AUTH_EXEMPT_PATHS = (
 MAINTENANCE_EXEMPT_PATHS = (
     f'/{BASE_PATH}admin/',
     f'/{BASE_PATH}extras/config-revisions/',  # Allow modifying the configuration
+    LOGIN_URL,
+    LOGIN_REDIRECT_URL,
+    LOGOUT_REDIRECT_URL
 )
 
 SERIALIZATION_MODULES = {