Commit d3a8d116 authored by Guilhem Saurel's avatar Guilhem Saurel

fix token

parent b535ffdf
Pipeline #8495 passed with stage
in 52 seconds
......@@ -170,8 +170,8 @@ def gl_webhook(request: HttpRequest) -> HttpResponse:
if token is None:
print('no token')
return HttpResponseRedirect(reverse('login'))
if token != settings.GITHUB_WEBHOOK_KEY:
print(f'wrong token: {token}')
if token != settings.GITLAB_WEBHOOK_KEY:
print('wrong token')
return HttpResponseForbidden('wrong token.')
event = request.META.get('HTTP_X_GITLAB_EVENT', 'ping')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment