redux-auth icon indicating copy to clipboard operation
redux-auth copied to clipboard

How can add extra field on signup form

Open vijaychouhan-rails opened this issue 8 years ago • 10 comments

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

vijaychouhan-rails avatar Sep 16 '16 06:09 vijaychouhan-rails

I am also looking for an answer to this problem.

Volcantis avatar Sep 21 '16 03:09 Volcantis

Just create your own view (form) with your extra field based on one of the existing views from redux-auth/src/views

dusterio avatar Sep 29 '16 10:09 dusterio

You can always do that but, in that case, you will have to deploy the package to npm to use it as a dependency.

Volcantis avatar Sep 29 '16 10:09 Volcantis

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!

dusterio avatar Sep 29 '16 10:09 dusterio

I don't wish to include the js in the application but use it as a module.

Volcantis avatar Sep 29 '16 10:09 Volcantis

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.

dusterio avatar Sep 29 '16 11:09 dusterio

I get that, I was trying to find out if the author has already implemented the functionality to customize the signup fields.

Volcantis avatar Sep 29 '16 12:09 Volcantis

Looks to me like this repo is somewhat abandoned. You probably have to fork it :)

dusterio avatar Sep 29 '16 14:09 dusterio

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 avatar Sep 29 '16 15:09 lynndylanhurley

@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

dusterio avatar Oct 03 '16 00:10 dusterio