Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request URL:http://budget.expectbrilliant.com/auth/local
- Request Method:POST
- Status Code:404 Not Found404 Not Found
- Request Payload
- {"email":"ben@cogiva.com","password":"nebjam2n"}
- Response Headers
- Client-Via:shouldInterceptRequest
- Request URL:http://budget.expectbrilliant.com/auth/local
- Request Method:POST
- Status Code:200 OK
- Remote Address:46.101.93.76:80
- Response Headers
- Access-Control-Allow-Origin:*
- Connection:keep-alive
- Content-Length:184
- Content-Type:application/json; charset=utf-8
- Date:Sat, 16 Jan 2016 12:50:08 GMT
- Vary:Accept-Encoding
- X-Powered-By:Express
- Request Headers
- Accept:application/json, text/plain, */*
- Accept-Encoding:gzip, deflate
- Accept-Language:en-GB,en-US;q=0.8,en;q=0.6
- Authorization:Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJfaWQiOiI1Njg3ZGVkNDExNDZjODhhMDc0ZjRjMjYiLCJpYXQiOjE0NTI5NDg1OTcsImV4cCI6MTQ1Mjk2NjU5N30.cJfVi4YED2qTdE_vlaMacK9-OzCa8s2jN3BtMk2VNIA
- Connection:keep-alive
- Content-Length:48
- Content-Type:application/json; charset=UTF-8
- Host:budget.expectbrilliant.com
- Origin:http://localhost:9000
- Referer:http://localhost:9000/
- 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
- Request Payload
- {email: "ben@cogiva.com", password: "nebjam2n"}
- email: "ben@cogiva.com"
- password: "nebjam2n"
- login: function(user, callback) {
- var cb = callback || angular.noop;
- var deferred = $q.defer();
- $http.post($rootScope.globalURL + '/auth/local', {
- email: user.email,
- password: user.password
- }).
- success(function(data) {
- $cookieStore.put('token', data.token);
- currentUser = User.get();
- deferred.resolve(data);
- return cb();
- }).
- error(function(err) {
- this.logout();
- deferred.reject(err);
- return cb(err);
- }.bind(this));
- return deferred.promise;
- },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement