feat: 调整

This commit is contained in:
Czw996 2021-12-12 17:36:21 +08:00
commit 0708ad2c29

View file

@ -8,8 +8,8 @@ from django.conf import settings
class BaseAuthentication(JWTAuthentication):
def authenticate(self, request):
if settings.DEBUG:
return User.objects.all().first(), {}
# if settings.DEBUG:
# return User.objects.all().first(), {}
if (header := self.get_header(request)) is None:
return None