SHARE
TWEET

Untitled

a guest Aug 12th, 2016 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.       });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top