Pbkdf2: Use it everywhere.

This commit is contained in:
Lain Soykaf 2021-01-14 15:06:16 +01:00
commit 39f3683a06
21 changed files with 37 additions and 127 deletions

View file

@ -2187,7 +2187,7 @@ defmodule Pleroma.User do
defp put_password_hash(
%Ecto.Changeset{valid?: true, changes: %{password: password}} = changeset
) do
change(changeset, password_hash: Pleroma.Password.hash_pwd_salt(password))
change(changeset, password_hash: Pleroma.Password.Pbkdf2.hash_pwd_salt(password))
end
defp put_password_hash(changeset), do: changeset