Skip to content

Commit

Permalink
Fix expiration page not passing session_id to api
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterOdin committed Sep 8, 2018
1 parent d3274a7 commit e671b71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/controllers/ExpirationsCtrl.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
angular.module('ExpirationsCtrl', []).controller('ExpirationsCtrl', ['$scope', '$http', '$q', function($scope, $http, $q) {
angular.module('ExpirationsCtrl', []).controller('ExpirationsCtrl', ['$scope', '$http', '$q', 'AuthService', function($scope, $http, $q, AuthService) {
$q.all([
$http.get('.expired_certs.php?type=expired'),
$http.get('.expired_certs.php?type=expiring')
$http.get('.expired_certs.php?type=expired&session_id=' + AuthService.getSessionId()),
$http.get('.expired_certs.php?type=expiring&session_id=' + AuthService.getSessionId())
]).then(function (responses) {
$scope.expired = responses[0].data.cpr.concat(responses[0].data.emt.concat(responses[0].data.dl));
$scope.expiring = responses[1].data.cpr.concat(responses[1].data.emt.concat(responses[1].data.dl));
Expand Down

0 comments on commit e671b71

Please sign in to comment.