Skip to content

Commit

Permalink
one more unneded rejection call by @MariuszHenn
Browse files Browse the repository at this point in the history
  • Loading branch information
ikaras committed Apr 7, 2017
1 parent 625eb10 commit 0b638c0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/ng-token-auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,10 @@ angular.module('ng-token-auth', ['ipCookie']).provider('$auth', function() {
$rootScope.$broadcast('auth:password-reset-confirm-error', resp.data);
}
$rootScope.$broadcast('auth:validation-error', resp.data);
_this.rejectDfd({
return _this.rejectDfd({
reason: 'unauthorized',
errors: resp.data != null ? resp.data.errors : ['Unspecified error']
}, resp.status > 0);
return $q.reject(resp);
};
})(this));
} else {
Expand Down
Loading

0 comments on commit 0b638c0

Please sign in to comment.