Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. var user = new CB.CloudUser();
  2. user.set('username', 'my_username');
  3. user.set('password', 'my_password');
  4. user.logIn({
  5. success: function(response) {
  6. // do something
  7. },
  8. error: function(error) {
  9. // do something
  10. }
  11. });
  12.  
  13. CB.CloudUser {document: Object}
  14. ACL: (...)
  15. createdAt: (...)
  16. document: Object
  17. ACL: CB.ACL
  18. _id: "bSzZWFZf"
  19. _tableName: "User"
  20. _type: "user"
  21. _version: 0
  22. createdAt: "2016-02-12T09:25:32.272Z"
  23. email: "paco1@mail.com"
  24. expires: null
  25. password: "zyF7XhaB685VtWkzv9DdyMJ14f7c7OBCNEXpwHom7rZz62RCbb/WZLAlAiwwHz9iePCzwlXBHmPMT8kyBDO/Bw=="
  26. updatedAt: "2016-02-12T09:25:32.272Z"
  27. username: "paco1@mail.com"
  28. __proto__: Object
  29. email: (...)
  30. expires: (...)
  31. id: (...)
  32. password: (...)
  33. updatedAt: (...)
  34. username: (...)
  35. __proto__: Object
  36.  
  37. CB.CloudUser {document: Object}
  38. ACL: (...)
  39. createdAt: (...)
  40. document: Object
  41. ACL: CB.ACL
  42. _isModified: true
  43. _modifiedColumns: Array[4]
  44. _tableName: "User"
  45. _type: "user"
  46. expires: null
  47. __proto__: Object
  48. email: (...)
  49. expires: (...)
  50. id: (...)
  51. password: (...)
  52. updatedAt: (...)
  53. username: (...)
  54. __proto__: Object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement