Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
b535ffdf
Commit
b535ffdf
authored
Feb 25, 2020
by
Guilhem Saurel
Browse files
show wrong token
parent
9531cb33
Pipeline
#8494
passed with stage
in 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
gh/views.py
View file @
b535ffdf
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment