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

Create fails on non standard user model #106

Closed
mbouclas opened this issue Nov 12, 2015 · 2 comments
Closed

Create fails on non standard user model #106

mbouclas opened this issue Nov 12, 2015 · 2 comments

Comments

@mbouclas
Copy link

I have a user model with some added properties that are required. When i do FB auth for example, everything goes as planned up to the point where the new user needs to be created. Validation fails of course since my fields are missing. How can i setup what happens after the FB login is completed?
In passport you do something like new FacebookStrategy(strategy, loginFacebook) where the 2nd parameter is your callback where you check if the user exists and add your custom logic.

How can i set my custom fields with default values before the create is fired?

@jonathan-casarrubias
Copy link

#95

@superkhau
Copy link
Contributor

Duplicate, closing.

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

3 participants