Advertisement
Guest User

Untitled

a guest
Jun 17th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var newUser = {
  2. username: $scope.form.username,
  3. password: $scope.form.password,
  4. userTypeId: 1,
  5. email: $scope.form.email
  6. };
  7.  
  8. $http.post(
  9. ENVIRONMENT.backendUrl + '/users/add/.json?XDEBUG_SESSION_START=PHPSTORM',
  10. newUser
  11. ).success(function() {
  12. alert( "success");
  13. }).error(function() {
  14. alert( "failure");
  15. });
  16.  
  17. $.post(
  18. ENVIRONMENT.backendUrl + '/users/add/.json?XDEBUG_SESSION_START=PHPSTORM',
  19. newUser
  20. ).success(function() {
  21. alert( "success");
  22. }).error(function() {
  23. alert( "failure");
  24. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement