Merge pull request #5094 from kellycampbe/ConnectToServerFix
Fixes connect to server not working when a password is used for the UI.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user