mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 23:02:19 +00:00
Fix Auth API key check causing error 500s
This commit is contained in:
@@ -10,7 +10,7 @@ class APIKeyAuthentication(object):
|
|||||||
for key,value in request.GET.items():
|
for key,value in request.GET.items():
|
||||||
params[key.lower()] = value
|
params[key.lower()] = value
|
||||||
|
|
||||||
if params['apikey']:
|
if 'apikey' in params:
|
||||||
try:
|
try:
|
||||||
keyobj = AuthAPIKey.objects.get(key=params['apikey'])
|
keyobj = AuthAPIKey.objects.get(key=params['apikey'])
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in New Issue
Block a user