redux-auth
redux-auth copied to clipboard
How can add extra field on signup form
I need some more fields on Signup form but I could not see a doc to add extra field on signup form.
Ex: I need add first_name and last_name, address on signup field
I am also looking for an answer to this problem.
Just create your own view (form) with your extra field based on one of the existing views from redux-auth/src/views
You can always do that but, in that case, you will have to deploy the package to npm to use it as a dependency.
What package? Why? Just create a JS file with the view in your own application, use one of the views (default, for instance) as a bootstrap. And use that view in the component instead of the views bundled inside 'redux-auth' package. Just one extra file, really!
I don't wish to include the js in the application but use it as a module.
Well, I don't see any other way! :) Even if author were to include a way, different users would ask for different input types, different layouts and so on.
I get that, I was trying to find out if the author has already implemented the functionality to customize the signup fields.
Looks to me like this repo is somewhat abandoned. You probably have to fork it :)
Just create a JS file with the view in your own application, use one of the views (default, for instance) as a bootstrap.
This is the best option for now.
Looks to me like this repo is somewhat abandoned.
I haven't abandoned this repo. Just been super busy with paying projects. I have tons of updates and improvements planned.
In the meantime feel free to submit PRs and I'll merge them as soon as possible. If the PRs are good I'll give you commit access to the repo.
@lynndylanhurley good to know you haven't abandoned it! :)
As far as I can see from the source code, the client side-only approach as well as local storage have never been implemented fully? I may do a PR covering these. I really don't like the idea of mixing server-side with client-side authentication. It feels like mixing 201x's approach with 1990s