Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Add in the if you are not guest, still throw the login
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Levett committed Aug 30, 2016
1 parent 48de451 commit 58759c6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions uw-frame-components/portal/timeout/controllers.js
Expand Up @@ -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
Expand All @@ -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();
}
}
}
);
Expand Down

0 comments on commit 58759c6

Please sign in to comment.