Explorar el Código

allow login and logout in maintenance mode #14166

Abhimanyu Saharan hace 2 años
padre
commit
dd5e20aa1a
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 = {