mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-1744: Merge fix to clean up UI only if user is not logged in.
This commit is contained in:
@@ -252,7 +252,7 @@ angular.module('index').controller('indexController', ['$scope', '$injector',
|
||||
// that connection activity will already automatically check session
|
||||
// validity.
|
||||
$interval(function cleanUpViewIfSessionInvalid() {
|
||||
if ($scope.applicationState === ApplicationState.READY && !hasActiveTunnel()) {
|
||||
if (!!authenticationService.getCurrentToken() && !hasActiveTunnel()) {
|
||||
authenticationService.getValidity().then(function validityDetermined(valid) {
|
||||
if (!valid)
|
||||
$scope.reAuthenticate();
|
||||
|
Reference in New Issue
Block a user