Skip to content

Commit

Permalink
fix: change_attribute -> force_* to eliminate waring
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Nov 1, 2024
1 parent 86d5001 commit 05f906a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit 05f906a

Please sign in to comment.