Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i add some fields in register? #7

Closed
Root-Control opened this issue Jul 10, 2018 · 2 comments
Closed

How can i add some fields in register? #7

Root-Control opened this issue Jul 10, 2018 · 2 comments

Comments

@Root-Control
Copy link

Actually the Register module is working with passports usernameOrEmail and Password, how can i add firstName, lastName (i edited the models, the interfaces and validations)

@bojidaryovchev
Copy link
Owner

I hope I understand correctly.. The top 3 most used login methods are username/password, email/password and social logins (fb, twitter, google).. So u want users to enter their first and last names in a login form every time they wanna login? Anyway, u should check the specific passport documentation to find a solution

@Root-Control
Copy link
Author

Yes, this is because i was asking hehe, actually passport have a solution, adding the params in the callback function , but i added and i was getting errors :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants