Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Accounts.createUser(options, [callback])
- var options = {
- username: $('#input-username').val(),
- password: $('#input-password').val(),
- profiles: {
- birthday: $('#input-birthday').val
- }
- };
- Accounts.createUser(options)
- email: email,
- password: password,
- username: username,
- profile: {
- firstname: firstname,
- lastname: lastname,
- twitter: twitter,
- birthdate: birthdate
- }
- });
- },
- Template.registerUser.events({
- 'submit form': function(event){
- event.preventDefault();
- var firstname = event.target.firstnam.value;
- Meteor.call('createUser', clubName, capacity, description, homepage);
- Router.go('userInfoStep2');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement