Delete empty _2fDevices session key

environments/ppa-mbqj77/deployments/1
Christophe Maudoux 7 years ago
parent ed4b741319
commit 813926e9d3
  1. 5
      lemonldap-ng-manager/site/coffee/sessions.coffee
  2. 4
      lemonldap-ng-manager/site/htdocs/static/js/sessions.js
  3. 2
      lemonldap-ng-manager/site/htdocs/static/js/sessions.min.js

@ -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…
Cancel
Save