Ash FrameworkAF
Ash Framework8mo ago
13 replies
Quentin

I'm getting a `:type not found in :nil` error when trying to roll my own confirm user page

Originating from this call:


    form =
      Offen.Accounts.User
      |> AshPhoenix.Form.for_action(:confirm_new_user, as: "confirm_new_user")


It seems like it's not the right action name, even though I have:

      confirmation :confirm_new_user do
        monitor_fields [:email]
        confirm_on_create? true
        confirm_on_update? false
        require_interaction? true
        confirmed_at_field :confirmed_at
        auto_confirm_actions [:sign_in_with_magic_link, :reset_password_with_token]
        sender Offen.Accounts.User.Senders.SendNewUserConfirmationEmail
      end
Was this page helpful?