Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. accounts-base 1.2.2* A user account system
  2. accounts-password 1.1.4* Password support for accounts
  3.  
  4. var userNew = {
  5. password: textPassword,
  6. username: textUserName,
  7. profile: {
  8. address: textAddress
  9. }
  10. };
  11.  
  12. Accounts.createUser(userNew, function (err) {
  13. if (err) {
  14. alert(err.message);
  15. } else {
  16. Router.go('/');
  17. }
  18. });
  19.  
  20. I20160423-17:47:07.299(7)? Exception while invoking method 'createUser' TypeError: Cannot read property 'accessToken' of undefined
  21.  
  22. Accounts.config({
  23. forbidClientAccountCreation : false
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement