Fixed bot account
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user