KEYCLOAK-959 Warning message in server log after logging out all sessions

This commit is contained in:
Stian Thorgersen 2015-01-15 09:54:52 +01:00
parent c3c6d4cbba
commit 82a7471042

View file

@ -852,8 +852,6 @@ module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmA
$scope.realm = realm;
$scope.stats = stats;
console.log(stats);
$scope.logoutAll = function() {
RealmLogoutAll.save({realm : realm.realm}, function (globalReqResult) {
var successCount = globalReqResult.successRequests ? globalReqResult.successRequests.length : 0;
@ -863,16 +861,10 @@ module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmA
var msgStart = successCount>0 ? 'Successfully logout all users under: ' + globalReqResult.successRequests + ' . ' : '';
Notifications.error(msgStart + 'Failed to logout users under: ' + globalReqResult.failedRequests + '. Verify availability of failed hosts and try again');
} else {
Notifications.success('Successfully logout all users from the realm');
window.location.reload();
}
RealmApplicationSessionStats.query({realm: realm.realm}, function(updated) {
$scope.stats = updated;
})
});
};
});