From 58759c693d12293b06fd8fd42f0cf02ec7cbb549 Mon Sep 17 00:00:00 2001 From: Tim Levett Date: Tue, 30 Aug 2016 08:43:43 -0500 Subject: [PATCH] Add in the if you are not guest, still throw the login --- uw-frame-components/portal/timeout/controllers.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/uw-frame-components/portal/timeout/controllers.js b/uw-frame-components/portal/timeout/controllers.js index 2ffda8492..64fa76fc3 100644 --- a/uw-frame-components/portal/timeout/controllers.js +++ b/uw-frame-components/portal/timeout/controllers.js @@ -3,8 +3,8 @@ define(['angular'], function(angular) { var app = angular.module('portal.timeout.controllers', []); - app.controller('PortalTimeoutController', ['$log', '$location', '$timeout', '$mdDialog', 'MISC_URLS', 'PortalShibbolethService', - function($log, $location, $timeout, $mdDialog, MISC_URLS, PortalShibbolethService){ + app.controller('PortalTimeoutController', ['$sessionStorage', '$log', '$location', '$timeout', '$mdDialog', 'MISC_URLS', 'PortalShibbolethService', + function($sessionStorage, $log, $location, $timeout, $mdDialog, MISC_URLS, PortalShibbolethService){ function init(){ if(PortalShibbolethService.shibServiceActivated()) { //initialize timeout and dialog @@ -14,6 +14,12 @@ define(['angular'], function(angular) { $timeout(triggerDialog, timeoutData.expirationMills); } else { $log.info("Timeout data could not be found"); + if($sessionStorage.portal + && $sessionStorage.portal.username + && $sessionStorage.portal.username !== 'guest'){ + //we know its not a guest session + triggerDialog(); + } } } );