mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added certificate expiration warning.
This commit is contained in:
parent
9c2db4887c
commit
5d11173f10
6 changed files with 36 additions and 5 deletions
|
@ -1398,6 +1398,12 @@
|
|||
serverinfo = message.serverinfo;
|
||||
if (serverinfo.timeout) { setInterval(checkIdleSessionTimeout, 10000); checkIdleSessionTimeout(); }
|
||||
if (userinfo != null) updateSelf();
|
||||
if (serverinfo.certExpire != null) {
|
||||
var days = Math.floor((serverinfo.certExpire - Date.now()) / 86400000);
|
||||
if ((days >= 0) && (days < 20)) {
|
||||
addNotification({ text: format("Certificate expires in {0} day(s)", days) });
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'authcookie': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue