Ver Fonte

allow login and logout in maintenance mode #14166

Abhimanyu Saharan há 2 anos atrás
pai
commit
dd5e20aa1a
1 ficheiros alterados com 3 adições e 0 exclusões
  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 = {