From bba01bdbc45c74d4b8aafc59223bd16cf2bf5392 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 24 Apr 2018 15:27:18 -0700 Subject: [PATCH] GUACAMOLE-526: Explicitly fail routing if attempting to update the auth token fails. --- .../src/main/webapp/app/index/config/indexRouteConfig.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guacamole/src/main/webapp/app/index/config/indexRouteConfig.js b/guacamole/src/main/webapp/app/index/config/indexRouteConfig.js index d66226694..47bc48e55 100644 --- a/guacamole/src/main/webapp/app/index/config/indexRouteConfig.js +++ b/guacamole/src/main/webapp/app/index/config/indexRouteConfig.js @@ -102,6 +102,10 @@ angular.module('index').config(['$routeProvider', '$locationProvider', route.resolve(); }); + }) + + ['catch'](function tokenUpdateFailed() { + route.reject(); }); // Return promise that will resolve only if the requested page is the