diff --git a/anytask/api/views.py b/anytask/api/views.py index c6092e05..81ab8f75 100644 --- a/anytask/api/views.py +++ b/anytask/api/views.py @@ -4,7 +4,7 @@ import json from django.conf import settings -from django.contrib.auth import authenticate, login +from django.contrib.auth import authenticate from django.http import HttpResponse, HttpResponseForbidden, HttpResponseBadRequest, HttpResponseNotFound from django.shortcuts import get_object_or_404 from django.views.decorators.csrf import csrf_exempt @@ -34,7 +34,6 @@ def check_auth(request, *args, **kwargs): auth_str = request.META['HTTP_AUTHORIZATION'] auth_str_parts = auth_str.split() - if auth_str_parts[0].lower() != "basic": return get_401_response()