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

Getting a session variable into Accounts.onCreateUser #5

Open
acomito opened this issue May 8, 2016 · 0 comments
Open

Getting a session variable into Accounts.onCreateUser #5

acomito opened this issue May 8, 2016 · 0 comments

Comments

@acomito
Copy link

acomito commented May 8, 2016

Background:

  • I collect information about a user's organization during my signup process.
  • I want this organization information to be inserted as a document into a collection of "organizations".
  • The schema for the organization includes the the user's id
  • I take the organization data from the forms and store it in a session variable-- this all works fine.

I'm wondering where the best place/time to insert this organization document as I need the user's Id to have been generated? I suppose I can just use a method call but where should I call the method from?

further explanation here:
https://forums.meteor.com/t/best-practice-for-sign-up-insert-doc-to-additional-collection/22806

It seems many people need this:

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