Ash FrameworkAF
Ash Framework3y ago
41 replies
Blibs

How to run :request_password_reset_with_password action?

So, looking at my request_password_reset_with_password action. it expects a changeset of an actual record.

But that would mean that I would need an changeset of the user I want to reset the password.

How would I get that user if the whole point of doing the reset is because the user is not able to login to that user?

I tried this:

params = %{reset_token: "...", password: "87654321", password_confirmation: "87654321"}

Marketplace.Accounts.User.password_reset_with_password(Marketplace.Accounts.User |> Ash.Changeset.new(), params)


But this will complain that the changeset is of action type.
Was this page helpful?