mirror of
https://github.com/ansible/awx.git
synced 2026-01-12 02:19:58 -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:
parent
f53a1b8f6c
commit
45e506ec0f
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user