From 82a7471042cb0045ec0008fd0fb6276415f55673 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Thu, 15 Jan 2015 09:54:52 +0100 Subject: [PATCH] KEYCLOAK-959 Warning message in server log after logging out all sessions --- .../theme/admin/base/resources/js/controllers/realm.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js index 8e9573d81f..cae978b4d7 100755 --- a/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js +++ b/forms/common-themes/src/main/resources/theme/admin/base/resources/js/controllers/realm.js @@ -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; - }) }); }; - - });