Fixed bot account
This commit is contained in:
parent
5dd0cb0b51
commit
9c3edfeb8c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user