Created
February 5, 2015 17:42
-
-
Save sergical/19b4c01c86298d48ed33 to your computer and use it in GitHub Desktop.
onboarding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accounts.onCreateUser(function(options, user) { | |
//misc stuff | |
if(options.profile.invite){ | |
Invites.remove({_id: options.profile.invite}); | |
} | |
//this is what i need to be doing? | |
user.isNew = true; | |
return user; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This works