KEYCLOAK-959 Warning message in server log after logging out all sessions
This commit is contained in:
parent
c3c6d4cbba
commit
82a7471042
1 changed files with 1 additions and 9 deletions
|
@ -852,8 +852,6 @@ module.controller('RealmSessionStatsCtrl', function($scope, realm, stats, RealmA
|
||||||
$scope.realm = realm;
|
$scope.realm = realm;
|
||||||
$scope.stats = stats;
|
$scope.stats = stats;
|
||||||
|
|
||||||
console.log(stats);
|
|
||||||
|
|
||||||
$scope.logoutAll = function() {
|
$scope.logoutAll = function() {
|
||||||
RealmLogoutAll.save({realm : realm.realm}, function (globalReqResult) {
|
RealmLogoutAll.save({realm : realm.realm}, function (globalReqResult) {
|
||||||
var successCount = globalReqResult.successRequests ? globalReqResult.successRequests.length : 0;
|
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 + ' . ' : '';
|
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');
|
Notifications.error(msgStart + 'Failed to logout users under: ' + globalReqResult.failedRequests + '. Verify availability of failed hosts and try again');
|
||||||
} else {
|
} else {
|
||||||
Notifications.success('Successfully logout all users from the realm');
|
window.location.reload();
|
||||||
}
|
}
|
||||||
|
|
||||||
RealmApplicationSessionStats.query({realm: realm.realm}, function(updated) {
|
|
||||||
$scope.stats = updated;
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue