meteor-useraccounts / core

Meteor sign up and sign in templates' core functionalities
http://useraccounts.meteor.com/
MIT License
529 stars 278 forks source link

Custom fields are not passed to postSignUpHook #723

Open derwaldgeist opened 8 years ago

derwaldgeist commented 8 years ago

I would like to add an "invitation code" to the signup form, so users can invite their friends and are rewarded if they join. I could successfully extend the form with an invitationCode field, but this field is not being passed over to the postSignUpHook.

The only way I got this scenario to work is to use the preSignUpHook and send the invitationCode via a Meteor.method() call to the server. But in this case, I don't know the id of the newly registered user.

Is there any way to pass custom fields to the postSignUpHook?