Advertisement
Guest User

Untitled

a guest
Aug 12th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $http({
  2. method: 'POST',
  3. url: 'http://localhost:8000/api/v1/user/user_signin',
  4. headers: {
  5. 'Content-Type': application/json
  6. },
  7. data: { username: $scope.user.username, password: $scope.user.password }
  8. }).then(function(returnData) {
  9.  
  10. console.log('success');
  11. $scope.result = returnData.data.salt;
  12. console.log($scope.result);
  13.  
  14. }, function errorCallback(returnData) {
  15.  
  16. console.log('error');
  17. console.log(returnData);
  18.  
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement