mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-06 05:01:14 -07:00
Fix loging on Python 2
This commit is contained in:
parent
25c850e243
commit
b01fac9641
1 changed files with 1 additions and 1 deletions
|
@ -56,6 +56,6 @@ def check_hash(password, hash_):
|
|||
# Same as "return hash_a == hash_b" but takes a constant time.
|
||||
# See http://carlos.bueno.org/2011/10/timing.html
|
||||
diff = 0
|
||||
for char_a, char_b in zip(hash_a, hash_b):
|
||||
for char_a, char_b in zip(bytearray(hash_a), bytearray(hash_b)):
|
||||
diff |= char_a ^ char_b
|
||||
return diff == 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue