check for application and streamkey combination instead of separately
This commit is contained in:
parent
bda78d892a
commit
59fa9df2ad
|
@ -27,8 +27,8 @@ def callback(request):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return HttpResponse('1', status=401)
|
return HttpResponse('1', status=401)
|
||||||
try:
|
try:
|
||||||
app = models.Application.objects.get(name=app_name)
|
application = models.Application.objects.get(name=app_name)
|
||||||
streamkey = models.Streamkey.objects.get(key=stream_name)
|
streamkey = models.Streamkey.objects.get(key=stream_name, application=application)
|
||||||
|
|
||||||
except ObjectDoesNotExist:
|
except ObjectDoesNotExist:
|
||||||
return HttpResponse('1', status=401)
|
return HttpResponse('1', status=401)
|
||||||
|
|
Loading…
Reference in New Issue