以下は私のコードですが、何らかの理由で姓と名が保存されていませんか? Meteor で新しいユーザーを作成するときに追加情報を保存するにはどうすればよいですか? accounts-password パッケージを使用しています。
Accounts.createUser({
email: email,
password : password,
profile: {firstName: firstName, lastName: lastName}
}, function (err) {
if (err) {
// Inform the user that account creation failed
} else {
// Success. Account has been created and the user
// has logged in successfully.
}
});