mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 05:17:36 -02:30
removing stale code
to make atom happy :)
This commit is contained in:
@@ -71,7 +71,6 @@ export default
|
|||||||
},
|
},
|
||||||
|
|
||||||
expireSession: function (reason) {
|
expireSession: function (reason) {
|
||||||
var x;
|
|
||||||
if(reason === 'session_limit'){
|
if(reason === 'session_limit'){
|
||||||
$rootScope.sessionLimitExpired = true;
|
$rootScope.sessionLimitExpired = true;
|
||||||
$rootScope.sessionExpired = false;
|
$rootScope.sessionExpired = false;
|
||||||
@@ -90,15 +89,15 @@ export default
|
|||||||
var tm, t, x, y;
|
var tm, t, x, y;
|
||||||
tm = ($AnsibleConfig.session_timeout) ? $AnsibleConfig.session_timeout : 1800;
|
tm = ($AnsibleConfig.session_timeout) ? $AnsibleConfig.session_timeout : 1800;
|
||||||
t = new Date().getTime() + (tm * 1000);
|
t = new Date().getTime() + (tm * 1000);
|
||||||
x = new Object({
|
x = {
|
||||||
time: t,
|
time: t,
|
||||||
loggedIn: true
|
loggedIn: true
|
||||||
});
|
};
|
||||||
if(Store('sessionTime')){
|
if(Store('sessionTime')){
|
||||||
y = Store('sessionTime');
|
y = Store('sessionTime');
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
y = new Object();
|
y = {};
|
||||||
}
|
}
|
||||||
y[$rootScope.current_user.id] = x;
|
y[$rootScope.current_user.id] = x;
|
||||||
Store('sessionTime' , y);
|
Store('sessionTime' , y);
|
||||||
|
|||||||
Reference in New Issue
Block a user