Fix 2F removal when session ids are hidden (#2483)

We don't need to hide persistent session IDs because they are not
security senstive (hash of login)
2620-ppolicy-binding
Maxime Besson 4 years ago
parent 6a3479ea3c
commit 2c4d615c2f
  1. 3
      lemonldap-ng-manager/site/coffee/2ndfa.coffee
  2. 7
      lemonldap-ng-manager/site/htdocs/static/js/2ndfa.js
  3. 2
      lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js
  4. 2
      lemonldap-ng-manager/site/htdocs/static/js/2ndfa.min.js.map

@ -175,7 +175,6 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
title: title
nodes: tmp
time = session._utime
id = session._session_id
# 1. Replace values if needed
for key, value of session
@ -236,7 +235,6 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
nodes: subres
return {
_utime: time
id: id
nodes: res
}
@ -244,6 +242,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
sessionId = scope.$modelValue.session
$http.get("#{scriptname}sfa/#{sessionType}/#{sessionId}").then (response) ->
$scope.currentSession = transformSession response.data
$scope.currentSession.id = sessionId
$scope.showT = false
$scope.localeDate = (s) ->

@ -150,7 +150,7 @@
$scope.displaySession = function(scope) {
var sessionId, transformSession;
transformSession = function(session) {
var _insert, _stToStr, array, arrayDate, attr, attrs, category, epoch, i, id, k, key, len, len1, name, pattern, res, sfDevice, subres, time, title, value;
var _insert, _stToStr, array, arrayDate, attr, attrs, category, epoch, i, k, key, len, len1, name, pattern, res, sfDevice, subres, time, title, value;
_stToStr = function(s) {
return s;
};
@ -176,7 +176,6 @@
}
};
time = session._utime;
id = session._session_id;
for (key in session) {
value = session[key];
if (!value) {
@ -256,14 +255,14 @@
}
return {
_utime: time,
id: id,
nodes: res
};
};
$scope.currentScope = scope;
sessionId = scope.$modelValue.session;
$http.get(scriptname + "sfa/" + sessionType + "/" + sessionId).then(function(response) {
return $scope.currentSession = transformSession(response.data);
$scope.currentSession = transformSession(response.data);
return $scope.currentSession.id = sessionId;
});
return $scope.showT = false;
};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save