javascript - How to save additional user details on meteor.js, such as home address -
i new meteor.js , followed tutorial on meteor.com create task list log , post tasks. easy add accounts-ui & accounts-password packages project. when signing up, want user provide home address information , possibly more. want information stored in mongodb linked id of user. how this?
you can add information on profile field of user.
something on event (client side code)
template.example.events({ 'click #register':function(event,template){ var homeaddress = template.$('homeaddress').val(); accounts.createuser({ email: email, password: password, profile: { homeaddress: homeaddress } }); } })
remember username
,email
, profile
fields published default accounts-password package.
Comments
Post a Comment