This commit is contained in:
Kevin Froman 2019-12-01 01:37:35 -06:00
commit 9b2aa63846
5 changed files with 43 additions and 64 deletions

View file

@ -85,10 +85,7 @@ class PrivateAPI:
logger.error("client password needs to be set")
return False
try:
if not hmac.compare_digest(self.clientToken, token):
return False
else:
return True
return hmac.compare_digest(self.clientToken, token)
except TypeError:
return False