Skip to content

Commit

Permalink
Encode parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
danniel committed Feb 19, 2024
1 parent a352ec8 commit 0a79c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def old_hash_password(self, password, method, salt=None, pepper=None):
return None

if salt:
h = hmac.new(salt, password, method)
h = hmac.new(salt.encode("utf8"), password.encode("utf8"), method)
else:
h = method(password)

Expand Down

0 comments on commit 0a79c6b

Please sign in to comment.