Read slack token from env
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful
This commit is contained in:
parent
a2b3d21f27
commit
dcbc392e7c
@ -63,7 +63,7 @@ def get_group_cards():
|
|||||||
@page_api.route("/api/slack/doorboy", methods=['POST'])
|
@page_api.route("/api/slack/doorboy", methods=['POST'])
|
||||||
def view_slack_doorboy():
|
def view_slack_doorboy():
|
||||||
print(request.data)
|
print(request.data)
|
||||||
if request.form.get("token") != "FSh3r8UE1vFHP4GrAn8SgZUY":
|
if request.form.get("token") != const.SLACK_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"
|
||||||
|
@ -17,3 +17,4 @@ AWS_ENDPOINT_URL = os.environ["AWS_ENDPOINT_URL"]
|
|||||||
INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"]
|
INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"]
|
||||||
MONGO_URI = os.environ["MONGO_URI"]
|
MONGO_URI = os.environ["MONGO_URI"]
|
||||||
MEMBERS_HOST = os.environ["MEMBERS_HOST"]
|
MEMBERS_HOST = os.environ["MEMBERS_HOST"]
|
||||||
|
SLACK_TOKEN = os.environ["SLACK_TOKEN"]
|
||||||
|
Loading…
Reference in New Issue
Block a user