mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +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
|
// 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();
|
||||||
|
Reference in New Issue
Block a user