Creating email method for auth but how i can add username?

Hey All\ I am creating a hackernews clone, and i want to add email-password login, which is working great. thank you for that. But, unfortunately i couldn't succeed to add username to form without rewriting all SignupForm component. Is there a way to add username field to SignupForm component without overriding it? Its using Auth component and that component is handling a lot thing about registration, i do not want to copy-paste all that code in a new file and making things complicated. Thank you for all suggestions.
3 Replies
miho
miho16mo ago
Hey, you'll have to use the signup action to create a custom form 😐 we will provide a better way to amend fields to the default form in the future You can import the signup action from @wasp/auth/email
delirehberi
delirehberi16mo ago
i see, ok, thank you.
martinsos
martinsos16mo ago
@delirehberi I hope you managed to get it working! While as @miho said we don't have support for both using pre-made SignUp form and also extending it with additional fields, it is something we could do: I created an issue for it here on Github so we can track it and work on it: https://github.com/wasp-lang/wasp/issues/1233 .
Want results from more Discord servers?
Add your server