Saturday 15 January 2011

Meteor.users maintaining users -



Meteor.users maintaining users -

i have meteor app need to:

create / update app users including name, username , password. wondering if first possible while login app meteor user? in other words possible create / update other app users while logging in app user? i've tried search illustration / how couldn't find whatever help highly appreciated.

add custom fields meteor.users document (ex. user type(accountant / sales...etc), phone...etc)? after research couldn't find illustration except on how update meteor.users profile in update only, couldn't find how when creating new user, help highly appreciated.

thanks

to add together fields user utilize oncreateuser function

accounts.oncreateuser(function(user) { user.type = "customer"; user.phone = "123456789"; //etc homecoming user; });

and didn't understand first question, can update user info making query, such as: meteor.users.update({_id:this._id},{$addtoset~});

meteor

No comments:

Post a Comment