Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2016
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. var data = {
  2. grant_type: "password",
  3. username: userName,
  4. password: loginPassword
  5. };
  6.  
  7. $http.post("/Token", data)
  8. .then(function (response) {
  9. alert(JSON.stringify( response.data));
  10. return response.data;
  11. });
  12.  
  13. var data = "grant_type=password&username=" + userName + "&password=" + loginPassword;
  14.  
  15. $http.post("/Token", data)
  16. .then(function (response) {
  17. alert(JSON.stringify( response.data));
  18. return response.data;
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement