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

Commit

Permalink
Merge branch 'cleaning' into 'test'
Browse files Browse the repository at this point in the history
Revert password logging

See merge request fairdata/fairdata-metax!9
  • Loading branch information
Tommi Pulli committed Apr 1, 2021
2 parents aaba789 + 3e48565 commit bd950ba
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 bd950ba

Please sign in to comment.