From 478d98b534811883217f7b6b29f8efeb87260d9e Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Fri, 30 Dec 2022 02:33:33 +0000 Subject: [PATCH] defer user hash to Pleroma.Password --- lib/pleroma/user.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pleroma/user.ex b/lib/pleroma/user.ex index 56cc9a1e3..1ddbd36a8 100644 --- a/lib/pleroma/user.ex +++ b/lib/pleroma/user.ex @@ -2277,7 +2277,7 @@ def get_ap_ids_by_nicknames(nicknames) 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