From 05f906aa51a1490abcdc6144b3c14f659975ce8a Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 31 Oct 2024 21:28:37 -0400 Subject: [PATCH] fix: change_attribute -> force_* to eliminate waring --- .../strategies/password/hash_password_change.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_authentication/strategies/password/hash_password_change.ex b/lib/ash_authentication/strategies/password/hash_password_change.ex index 60d97563..d4df9338 100644 --- a/lib/ash_authentication/strategies/password/hash_password_change.ex +++ b/lib/ash_authentication/strategies/password/hash_password_change.ex @@ -49,7 +49,7 @@ defmodule AshAuthentication.Strategy.Password.HashPasswordChange do value when is_binary(value) <- Changeset.get_argument(changeset, strategy.password_field), {:ok, hash} <- strategy.hash_provider.hash(value) do - Changeset.change_attribute(changeset, strategy.hashed_password_field, hash) + Changeset.force_change_attribute(changeset, strategy.hashed_password_field, hash) else :error -> raise AssumptionFailed, message: "Error hashing password."