Commit b535ffdf authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

show wrong token

parent 9531cb33
Pipeline #8494 passed with stage
in 53 seconds
......@@ -171,7 +171,7 @@ def gl_webhook(request: HttpRequest) -> HttpResponse:
print('no token')
return HttpResponseRedirect(reverse('login'))
if token != settings.GITHUB_WEBHOOK_KEY:
print('wrong token')
print(f'wrong token: {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