new: [widgets] Whoami widget added

pull/5635/head
iglocska 2020-03-06 10:06:31 +01:00
parent 60640f4916
commit cd4b6936c8
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 4 additions and 1 deletions

View File

@ -8,7 +8,7 @@ class MispAdminSyncTestWidget
public $height = 2;
public $params = array();
public $description = 'Basic widget showing some server statistics in regards to MISP.';
public $cacheLifetime = 5;
public $cacheLifetime = 1;
public function handler($user, $options = array())
@ -20,6 +20,9 @@ class MispAdminSyncTestWidget
'recursive' => -1
));
$data = array();
if (empty($servers)) {
return array();
}
$syncTestErrorCodes = $this->Server->syncTestErrorCodes;
foreach ($servers as $server) {
$result = $this->Server->runConnectionTest($server['Server']['id']);