diff --git a/app.py b/app.py index 450b156..206b7ea 100644 --- a/app.py +++ b/app.py @@ -254,6 +254,9 @@ def inject_has_authorized_cookie(): def require_system_password(): if request.endpoint is None: return + + if request.endpoint in ['forbidden', 'not_found', 'internal_error', 'system_auth']: + return if 'authorized' not in request.cookies \ and request.endpoint != 'system_auth' \