log l'env API_AUTH_DISABLED

This commit is contained in:
Colin Maudry
2026-07-08 19:08:42 +02:00
parent 25df072202
commit 0137981201
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ MATOMO_BASE_URL=
MATOMO_TOKEN=
# API privée
DISABLE_API_AUTH="false"
API_AUTH_DISABLED="false"
MATOMO_URL=https://analytics.maudry.com/matomo.php
MATOMO_SITE_ID=14
MATOMO_TRACKING_ENABLED=true
+1
View File
@@ -16,6 +16,7 @@ def _abort_401(message: str):
def require_token(fn):
@wraps(fn)
def wrapper(*args, **kwargs):
print(API_AUTH_DISABLED)
if not API_AUTH_DISABLED:
header = request.headers.get("Authorization", "")
if not header.startswith("Bearer "):