mirror of
https://github.com/ansible/awx.git
synced 2026-02-22 13:36:02 -03:30
Make check for idle session more specific
in order to avoid collision with a social auth session's startup.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user