Advertisement
Guest User

Untitled

a guest
Jan 16th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Request URL:http://budget.expectbrilliant.com/auth/local
  2. Request Method:POST
  3. Status Code:404 Not Found404 Not Found
  4. Request Payload
  5. {"email":"ben@cogiva.com","password":"nebjam2n"}
  6. Response Headers
  7. Client-Via:shouldInterceptRequest
  8.  
  9. Request URL:http://budget.expectbrilliant.com/auth/local
  10. Request Method:POST
  11. Status Code:200 OK
  12. Remote Address:46.101.93.76:80
  13.  
  14. Response Headers
  15. Access-Control-Allow-Origin:*
  16. Connection:keep-alive
  17. Content-Length:184
  18. Content-Type:application/json; charset=utf-8
  19. Date:Sat, 16 Jan 2016 12:50:08 GMT
  20. Vary:Accept-Encoding
  21. X-Powered-By:Express
  22. Request Headers
  23. Accept:application/json, text/plain, */*
  24. Accept-Encoding:gzip, deflate
  25. Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
  26. Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiI1Njg3ZGVkNDExNDZjODhhMDc0ZjRjMjYiLCJpYXQiOjE0NTI5NDg1OTcsImV4cCI6MTQ1Mjk2NjU5N30.cJfVi4YED2qTdE_vlaMacK9-OzCa8s2jN3BtMk2VNIA
  27. Connection:keep-alive
  28. Content-Length:48
  29. Content-Type:application/json; charset=UTF-8
  30. Host:budget.expectbrilliant.com
  31. Origin:http://localhost:9000
  32. Referer:http://localhost:9000/
  33. User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
  34.  
  35. Request Payload
  36. {email: "ben@cogiva.com", password: "nebjam2n"}
  37. email: "ben@cogiva.com"
  38. password: "nebjam2n"
  39.  
  40. login: function(user, callback) {
  41. var cb = callback || angular.noop;
  42. var deferred = $q.defer();
  43.  
  44. $http.post($rootScope.globalURL + '/auth/local', {
  45. email: user.email,
  46. password: user.password
  47. }).
  48. success(function(data) {
  49. $cookieStore.put('token', data.token);
  50. currentUser = User.get();
  51. deferred.resolve(data);
  52. return cb();
  53. }).
  54. error(function(err) {
  55. this.logout();
  56. deferred.reject(err);
  57. return cb(err);
  58. }.bind(this));
  59.  
  60. return deferred.promise;
  61. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement