parent
62fe836f43
commit
dc8af84563
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class LegacyPassword(pbkdf2_sha256):
|
|||
# it is possible that we will generate a false positive if the users password happens to be 40 hex chars proceeded
|
||||
# by an * char, but this seems highly unlikely
|
||||
if not (secret[0] == "*" and len(secret) == 41 and all(c in string.hexdigits for c in secret[1:])):
|
||||
secret = mysql41.hash(secret + self.salt)
|
||||
secret = mysql41.hash(secret + self.salt.decode('utf-8'))
|
||||
return super(LegacyPassword, self)._calc_checksum(secret)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue