From dbbd427cf1126a79e6f804f4cac49ae074fe3804 Mon Sep 17 00:00:00 2001 From: Kelly Campbell Date: Sun, 4 Feb 2024 01:15:19 -0600 Subject: [PATCH] Fixes connect to server not working when a password is used for the UI. --- Duplicati/Server/webroot/ngax/scripts/services/AppService.js | 1 - Duplicati/Server/webroot/ngax/scripts/services/ServerStatus.js | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/services/AppService.js b/Duplicati/Server/webroot/ngax/scripts/services/AppService.js index 3faac9575..6a292fe40 100644 --- a/Duplicati/Server/webroot/ngax/scripts/services/AppService.js +++ b/Duplicati/Server/webroot/ngax/scripts/services/AppService.js @@ -53,7 +53,6 @@ backupApp.service('AppService', function($http, $cookies, $q, $cookies, DialogSe DialogService.accept('Not logged in', function () { window.location = appConfig.login_url; }); - return; } deferred.reject(response); }); diff --git a/Duplicati/Server/webroot/ngax/scripts/services/ServerStatus.js b/Duplicati/Server/webroot/ngax/scripts/services/ServerStatus.js index fd3097322..8092dc04d 100644 --- a/Duplicati/Server/webroot/ngax/scripts/services/ServerStatus.js +++ b/Duplicati/Server/webroot/ngax/scripts/services/ServerStatus.js @@ -275,6 +275,9 @@ backupApp.service('ServerStatus', function($rootScope, $timeout, AppService, App // Try again longpoll(true); + } else if (response.status == 401) { + // Change state to connected to hide the connecting message, which is on top of the login message from the AppService + state.connectionState = 'connected'; } else { state.connectionState = 'disconnected';