diff --git a/lib/ash_authentication/strategies/password/actions.ex b/lib/ash_authentication/strategies/password/actions.ex index ae08fc9..ce67ba1 100644 --- a/lib/ash_authentication/strategies/password/actions.ex +++ b/lib/ash_authentication/strategies/password/actions.ex @@ -235,13 +235,13 @@ defmodule AshAuthentication.Strategy.Password.Actions do ash_authentication?: true } }) - |> Changeset.for_update(resettable.password_reset_action_name, params) + |> Changeset.for_update(resettable.password_reset_action_name, params, options) |> Changeset.after_action(fn _changeset, record -> token_resource = Info.authentication_tokens_token_resource!(resource) - :ok = TokenResource.revoke(token_resource, token) + :ok = TokenResource.revoke(token_resource, token, options) {:ok, record} end) - |> Ash.update(options) + |> Ash.update() else {:error, %Changeset{} = changeset} -> {:error, changeset} _ -> {:error, Errors.InvalidToken.exception(type: :reset)}