From 013798120106d36062dbcdfdaffd491cbb78385b Mon Sep 17 00:00:00 2001 From: Colin Maudry Date: Wed, 8 Jul 2026 19:08:42 +0200 Subject: [PATCH] log l'env API_AUTH_DISABLED --- .template.env | 2 +- src/api/auth.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.template.env b/.template.env index ae5357f..5ebef94 100644 --- a/.template.env +++ b/.template.env @@ -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 diff --git a/src/api/auth.py b/src/api/auth.py index 915d35c..c657eda 100644 --- a/src/api/auth.py +++ b/src/api/auth.py @@ -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 "):