From 9c3edfeb8c72b79d5f9c5ce5e86974d9b53af802 Mon Sep 17 00:00:00 2001 From: H4CK3R-01 Date: Sun, 27 Mar 2022 21:36:10 +0200 Subject: [PATCH] Fixed bot account --- api/helper_functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/helper_functions.py b/api/helper_functions.py index 3d59264..7f25059 100644 --- a/api/helper_functions.py +++ b/api/helper_functions.py @@ -45,7 +45,7 @@ def get_email_from_token_data(): token = token.split(":")[0] try: - if jwt.decode(token, os.getenv('SECRET_KEY'), algorithms=["HS256"])['email'] == os.getenv("BOT_USER"): + if jwt.decode(token, os.getenv('SECRET_KEY'), algorithms=["HS256"])['email'] == os.getenv("BOT_EMAIL"): return email else: return None