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 do I access setCustomSignupOptions from onCreateUser #197

Open
tewksbum opened this issue Jan 28, 2016 · 2 comments
Open

How do I access setCustomSignupOptions from onCreateUser #197

tewksbum opened this issue Jan 28, 2016 · 2 comments

Comments

@tewksbum
Copy link

The use case that is laid out is EXACTLY what I want do. What I've done is, put this in the client/startup.js:

accountsUIBootstrap3.setCustomSignupOptions = function() {
return {
mxpDistinctId: Session.get('mxpdid'),
leadSource: Session.get('leadSource')
}
};

Then on the server, within onCreateUser I've tried:

console.log(options) - just has profile.name
console.log(options.leadSource) = undefined
console.log(options.mxpDistinctId) = undefined

What am I missing? Does the function need to be explicitly called somewhere? Am I using the wrong object within OnCreateUser?

Sorry - so close - yet so far!

@tewksbum
Copy link
Author

And clarification - I'm really looking to accomplish this w/ service logins Facebook / Google. I see that it does work for password accounts.

@tewksbum
Copy link
Author

well... if this is of interest to anyone... what I did was update a ServerSession package so params can be grabbed client side and used on Server:
https://github.com/tewksbum/meteor-server-session

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

1 participant