From 3e48565b94d40633f64e80744926dc95ca36db39 Mon Sep 17 00:00:00 2001 From: Tommi Pulli Date: Thu, 1 Apr 2021 10:16:07 +0300 Subject: [PATCH] Revert password logging This reverts commit 113b5b57143ef341f5dd024c80a048c0250d9223. --- src/metax_api/middleware/identifyapicaller.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/metax_api/middleware/identifyapicaller.py b/src/metax_api/middleware/identifyapicaller.py index 41539181..26454ef7 100755 --- a/src/metax_api/middleware/identifyapicaller.py +++ b/src/metax_api/middleware/identifyapicaller.py @@ -10,7 +10,7 @@ from base64 import b64decode import requests -from django.conf import settings as django_settings, settings +from django.conf import settings as django_settings from django.http import HttpResponseForbidden from metax_api.exceptions import Http403 @@ -162,9 +162,6 @@ def _auth_basic(self, request, auth_b64): raise Http403 if apikey != user["password"]: _logger.warning("Failed authnz for user %s: password mismatch" % username) - if settings.DEBUG: - _logger.warning(f"Auth password mismatch with apikey {apikey} != {user['password']}") - raise Http403 request.user.username = username