What does the create action on your user resource look like? Ours looks like this:
create :register do
argument :password, :string, allow_nil?: false
argument :password_confirmation, :string, allow_nil?: false
change set_context(%{strategy_name: :password})
change AshAuthentication.Strategy.Password.HashPasswordChange
end
The AshAuthentication.Strategy.Password.HashPasswordChange converts passwords into their hashed version.
So you can then either use MyApp.User.create!(%{name: "Frieda", password: "123", password_confirmation: "123"}} and build a basic UI to do that, or be lazy like us and just use the AshAdmin plugin that creates a screen for you that looks something like:
You can also reset passwords in this auto-generated UI.























