This commit is contained in:
jabdoa2 2026-04-04 21:50:32 +00:00 committed by GitHub
commit 9b57fec806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1053,7 +1053,12 @@
this.icinga.timer.unregister(req.progressTimer);
}
if (req.status > 0 && req.status < 501) {
if (req.status == 401) {
this.icinga.logger.debug(
'Request to ' + url + ' return 401. Will refresh page to trigger new login.'
);
window.location.reload();
} else if (req.status > 0 && req.status < 501) {
this.icinga.logger.error(
req.status,
errorThrown + ':',