defer user hash to Pleroma.Password
ci/woodpecker/push/woodpecker Pipeline is pending Details
ci/woodpecker/pr/woodpecker Pipeline is pending Details

This commit is contained in:
FloatingGhost 2022-12-30 02:33:33 +00:00
parent 39db551fc6
commit 478d98b534
1 changed files with 1 additions and 1 deletions

View File

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