Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
Revert password logging
Browse files Browse the repository at this point in the history
This reverts commit 113b5b5.
  • Loading branch information
tompulli committed Apr 1, 2021
1 parent aaba789 commit 3e48565
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/metax_api/middleware/identifyapicaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3e48565

Please sign in to comment.