Add logging

This commit is contained in:
jar3b 2018-07-06 19:33:25 +03:00
parent bb69819278
commit 22428a6fa9

View File

@ -8,7 +8,9 @@ from drf_uuid_auth.settings import api_settings
class UuidAuthentication(BaseAuthentication): class UuidAuthentication(BaseAuthentication):
def authenticate(self, request): def authenticate(self, request):
print(api_settings.AUTH_HEADER)
header = request.META.get(api_settings.AUTH_HEADER.upper(), None) header = request.META.get(api_settings.AUTH_HEADER.upper(), None)
print(header)
if header is None or header == "" or header == "-": if header is None or header == "" or header == "-":
return None return None