From 45e506ec0f8f34a8aa55f63285b5ccf185905042 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Wed, 27 Jul 2016 11:28:05 -0700 Subject: [PATCH] Make check for idle session more specific in order to avoid collision with a social auth session's startup. --- awx/ui/client/src/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/app.js b/awx/ui/client/src/app.js index e25d53ac51..6b90c16b5d 100644 --- a/awx/ui/client/src/app.js +++ b/awx/ui/client/src/app.js @@ -872,7 +872,7 @@ var tower = angular.module('Tower', [ } else { var lastUser = $cookieStore.get('current_user'), timestammp = Store('sessionTime'); - if(lastUser && lastUser.id && timestammp && timestammp[lastUser.id]){ + if(lastUser && lastUser.id && timestammp && timestammp[lastUser.id] && timestammp[lastUser.id].loggedIn){ var stime = timestammp[lastUser.id].time, now = new Date().getTime(); if ((stime - now) <= 0) {