Accounts.onCreateUser adding extra attributes while creating new users, good practices?

后端 未结 3 1662
一向
一向 2021-02-14 13:04

I\'m creating new user with Accounts.createUser() and it works normally if you are not doing anything fancy. But I want to add some other fields to new user that are not listed

3条回答
  •  悲哀的现实
    2021-02-14 13:27

    Well it wasn't so hard.. Here it stands in documentation: "The default create user function simply copies options.profile into the new user document. Calling onCreateUser overrides the default hook." - Accounts.onCreateUser

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题