Revert "add logging for wrong token"
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This reverts commit 2134512805
.
This commit is contained in:
parent
cdfe6373e1
commit
66742ad577
@ -64,7 +64,6 @@ def get_group_cards():
|
|||||||
def view_slack_doorboy():
|
def view_slack_doorboy():
|
||||||
print(request.data)
|
print(request.data)
|
||||||
if request.form.get("token") != const.SLACK_VERIFICATION_TOKEN:
|
if request.form.get("token") != const.SLACK_VERIFICATION_TOKEN:
|
||||||
spam("received invalid request from Slack with bad token %s" % (request.form.get("token")))
|
|
||||||
return "Invalid token was supplied"
|
return "Invalid token was supplied"
|
||||||
if request.form.get("channel_id") not in ("C01CWPF5H8W", "CDL9H8Q9W"):
|
if request.form.get("channel_id") not in ("C01CWPF5H8W", "CDL9H8Q9W"):
|
||||||
return "Invalid channel was supplied"
|
return "Invalid channel was supplied"
|
||||||
|
Loading…
Reference in New Issue
Block a user