change slack env names again

This commit is contained in:
rasmus 2023-08-17 21:29:07 +03:00
parent 9b6eb9e10b
commit f52062709c
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ def get_group_cards():
@page_api.route("/api/slack/doorboy", methods=['POST'])
def view_slack_doorboy():
print(request.data)
if request.form.get("token") != const.SLACK_TOKEN:
if request.form.get("token") != const.SLACK_VERIFICATION_TOKEN:
return "Invalid token was supplied"
if request.form.get("channel_id") not in ("C01CWPF5H8W", "CDL9H8Q9W"):
return "Invalid channel was supplied"

View File

@ -17,5 +17,5 @@ AWS_ENDPOINT_URL = os.environ["AWS_ENDPOINT_URL"]
INVENTORY_ASSETS_BASE_URL = os.environ["INVENTORY_ASSETS_BASE_URL"]
MONGO_URI = os.environ["MONGO_URI"]
MEMBERS_HOST = os.environ["MEMBERS_HOST"]
SLACK_TOKEN = os.environ["SLACK_TOKEN"]
SLACK_CALLbACK = os.environ["SLACK_CALLBACK"]
SLACK_VERIFICATION_TOKEN = os.environ["SLACK_VERIFICATION_TOKEN"]
SLACK_CALLBACK = os.environ["SLACK_CALLBACK"]