meteor-accounts-ui-bootstrap-3
meteor-accounts-ui-bootstrap-3 copied to clipboard
How do I access setCustomSignupOptions from onCreateUser
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!
And clarification - I'm really looking to accomplish this w/ service logins Facebook / Google. I see that it does work for password accounts.
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