Fixed bot account

This commit is contained in:
Administrator 2022-03-27 21:36:10 +02:00
parent 5dd0cb0b51
commit 9c3edfeb8c

View File

@ -45,7 +45,7 @@ def get_email_from_token_data():
token = token.split(":")[0] token = token.split(":")[0]
try: 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 return email
else: else:
return None return None