aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-02-16 19:05:05 +0000
committerGravatar GitHub <[email protected]>2018-02-16 19:05:05 +0000
commit2f06c2507e9a8bf6523981acc1fa51757f46c094 (patch)
treea1cf4d390fe9d296b14aa1a75d0f894945c12290 /pysite
parentSimplify user API route and return changes (diff)
API_KEY -> BOT_API_KEY
Diffstat (limited to 'pysite')
-rw-r--r--pysite/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/decorators.py b/pysite/decorators.py
index c404b375..ff55b929 100644
--- a/pysite/decorators.py
+++ b/pysite/decorators.py
@@ -19,7 +19,7 @@ def api_key(f):
@wraps(f)
def inner(self, *args, **kwargs):
- if not request.headers.get("X-API-Key") == os.environ.get("API_KEY"):
+ if not request.headers.get("X-API-Key") == os.environ.get("BOT_API_KEY"):
return self.error(ErrorCodes.invalid_api_key)
return f(self, *args, **kwargs)