If I understand correctly, you are trying to extend the functionality of the standard Users service (i.e., you want to create your own sign-up/login flow)
There is a tutorial (and clone-able project) on customizing user authentication and it may help:
There are also several posts on this forum under “custom login flow”. Feel free to ask more questions if needed. I know a lot of folks here have had experience with this topic.
@alcampopiano So after watching the video and going through the clone sample app provided in the video, it appears that if I go custom login flow, I essentially have to implement all User Service functions myself?
Also, it appears that the way to then get data into the User table is through a straight table manipulation in the codebase.
I guess I was hoping to see a way to leverage the existing functions on the User Service by either overriding or overloading. https://anvil.works/docs/api/anvil.users
The other thought I had was to use the User Service to do a signup_by_email() only using the Email and Password properties and then do a straight update on the User table for all my custom properties. This will prevent me from having to write a whole bunch of code like hashing, reset password, etc…
Yep, I tend to agree that a fully custom flow may be overkill for you. I think that using the standard approach, and just building onto it simply as you’ve suggested is perfectly fine. I mean, hey, why not ask the user for additional information after involking the standard user flow. That seems reasonable to me. You would simply then have to have a way of dealing with that data (or lack of it) in terms of validation and how those new fields interact with the users table/user registration.