meteor-useraccounts/core

Custom fields are not passed to postSignUpHook

Opened this issue · 0 comments

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?