Merge branch 'master' of https://github.com/0Gitnick/onionr
This commit is contained in:
commit
9b2aa63846
5 changed files with 43 additions and 64 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue