Delete empty _2fDevices session key
This commit is contained in:
parent
ed4b741319
commit
813926e9d3
|
@ -207,8 +207,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
|
|||
# 2. Push session keys in result, grouped by categories
|
||||
for category, attrs of categories
|
||||
subres = []
|
||||
for attr in attrs
|
||||
|
||||
for attr in attrs
|
||||
if session[attr] and session[attr].match(/\w+/)
|
||||
if session[attr].match(/"type":\s*"(?:TOTP|U2F|UBK)"/)
|
||||
subres.push
|
||||
|
@ -235,6 +234,8 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
|
|||
value: session[attr]
|
||||
epoch: ''
|
||||
delete session[attr]
|
||||
else
|
||||
delete session[attr]
|
||||
if subres.length >0
|
||||
res.push
|
||||
title: "__#{category}__"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Generated by CoffeeScript 1.9.3
|
||||
// Generated by CoffeeScript 1.10.0
|
||||
|
||||
/*
|
||||
* Session explorer
|
||||
|
@ -277,6 +277,8 @@
|
|||
});
|
||||
delete session[attr];
|
||||
}
|
||||
} else {
|
||||
delete session[attr];
|
||||
}
|
||||
}
|
||||
if (subres.length > 0) {
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user