mirror of
https://github.com/himool/HimoolERP.git
synced 2024-12-26 08:51:32 +08:00
feat: 调整
This commit is contained in:
commit
0708ad2c29
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue