Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. var newUserData = {
  2. username : post.email,
  3. password : post.pwd,
  4. email : post.email,
  5. profile: {
  6. first_name : post.first_name,
  7. last_name : post.last_name,
  8. register : ''
  9. }
  10. };
  11. console.log('### new user data ###');
  12. console.log(newUserData);
  13. var newUserCreated = Accounts.createUser(newUserData, function(e){
  14. console.log('### createuser callback ###');
  15. console.log(e);
  16. });
  17. console.log(newUserCreated);
  18.  
  19. {
  20. username: 'info@email.com',
  21. password: 'mypassword',
  22. email: 'info@email.com',
  23. profile:
  24. { first_name: 'wadwad',
  25. last_name: 'wadawd',
  26. register: '' }
  27. }
  28.  
  29. Error: No result from call to createUser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement