GUACAMOLE-1744: Merge fix to clean up UI only if user is not logged in.

This commit is contained in:
James Muehlner
2023-02-28 11:46:10 -08:00
committed by GitHub

View File

@@ -252,7 +252,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
// that connection activity will already automatically check session // that connection activity will already automatically check session
// validity. // validity.
$interval(function cleanUpViewIfSessionInvalid() { $interval(function cleanUpViewIfSessionInvalid() {
if ($scope.applicationState === ApplicationState.READY && !hasActiveTunnel()) { if (!!authenticationService.getCurrentToken() && !hasActiveTunnel()) {
authenticationService.getValidity().then(function validityDetermined(valid) { authenticationService.getValidity().then(function validityDetermined(valid) {
if (!valid) if (!valid)
$scope.reAuthenticate(); $scope.reAuthenticate();