How can I add fields to the default AshAuthentication signup form?
I see which modules are being called but I don't know how to add new fields to registration (first name, last name, cell #, etc.). Are there docs for this and I just missed them?
3 Replies
This currently isn't possible: https://discord.com/channels/711271361523351632/1074081343148933120
We'd like to make it possible in the future, but the idea is that the view side of authentication (log in screens/registration screens) often get very custom and we can't cover every case. The UI side of ash_authentication_phoenix is designed to help you get started and focused on other stuff, but often you'll need to write your own liveviews
The actions underlying registration and sign in are all implemented on the resource and you can use those actions to ensure that you have the same logic. I imagine other users who have posted about similar topics here might be able to point you in the right direction.
Thanks! I feel better, I am still coming to grips with the transition away from views, so I thought I was missing something somewhere.
Unless you're currently focused on the sign up/sign in experience (and also if you're building something where you want a high conversion anyway) I'd suggest leaving it until later, and let users add additional information on a settings page. If having that information is a pre-requisite of your app, you can route them to the "now that you've signed up, whats your phone number" page if they haven't configured it, for example.
Unless necessitated by some other aspect of your app, thats usually a better design anyway 😄