diff --git a/inventory-app/api.py b/inventory-app/api.py index bd95c35..0f87d0a 100644 --- a/inventory-app/api.py +++ b/inventory-app/api.py @@ -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" diff --git a/inventory-app/const.py b/inventory-app/const.py index 3ca09e0..ad1c2f6 100644 --- a/inventory-app/const.py +++ b/inventory-app/const.py @@ -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"]