Commit 0b6aa6b3 authored by Christophe Maudoux's avatar Christophe Maudoux

Display U2F device attributes in 2FA session explorer (#1392)

parent 1faef8d0
......@@ -298,20 +298,21 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
for sfDevice in array
for key, value of sfDevice
if key == 'type'
type = value
title = value
if key == 'name'
name = value
if key == 'epoch'
epoch = value
subres.push
title: 'TYPE'
value: "#{type} / #{name}"
title: title
value: "#{name} / #{epoch}"
delete session[attr]
else
subres.push
title: attr
value: session[attr]
console.log("!=" + session[attr])
delete session[attr]
if subres.length >0
res.push
title: "__#{category}__"
......
......@@ -272,7 +272,7 @@
$scope.displaySession = function(scope) {
var sessionId, transformSession;
transformSession = function(session) {
var _insert, _stToStr, array, attr, attrs, category, i, id, k, key, len, len1, res, sfDevice, subres, time, value;
var _insert, _stToStr, array, attr, attrs, category, epoch, i, id, k, key, len, len1, name, res, sfDevice, subres, time, title, value;
_stToStr = function(s) {
return s;
};
......@@ -331,11 +331,20 @@
sfDevice = array[k];
for (key in sfDevice) {
value = sfDevice[key];
subres.push({
title: key,
value: value
});
if (key === 'type') {
title = value;
}
if (key === 'name') {
name = value;
}
if (key === 'epoch') {
epoch = value;
}
}
subres.push({
title: title,
value: name + " / " + epoch
});
}
delete session[attr];
} else {
......@@ -343,7 +352,6 @@
title: attr,
value: session[attr]
});
console.log("!=" + session[attr]);
delete session[attr];
}
}
......
......@@ -672,6 +672,7 @@
"sessionStartedAt":"بدأت الجلسة",
"sessionStorage":"تخزين الجلسات",
"sessionTitle":"محتوى الجلسة",
"sfaTitle":"Seconds Factors Authentication",
"show":"عرض",
"showHelp":"عرض المساعدة",
"singleIP":"عنوان آي بي واحد لكل مستخدم",
......
......@@ -672,7 +672,7 @@
"sessionStartedAt":"Session started on",
"sessionStorage":"Sessions Storage",
"sessionTitle":"Session content",
"sfaTitle":"Seconds Factors authentication",
"sfaTitle":"Seconds Factors Authentication",
"show":"Show",
"showHelp":"Show help",
"singleIP":"One IP only by user",
......
......@@ -672,7 +672,7 @@
"sessionStartedAt":"Session démarrée le ",
"sessionStorage":"Stockage des sessions",
"sessionTitle":"Contenu de la session",
"sfaTitle":"Seconds Facteurs d'authentification",
"sfaTitle":"Seconds Facteurs d'Authentification",
"show":"Montrer",
"showHelp":"Montrer l'aide",
"singleIP":"Une seule session par couple utilisateur/IP",
......
......@@ -672,7 +672,7 @@
"sessionStartedAt":"La sessione è stata avviata",
"sessionStorage":"Conservazione di sessioni",
"sessionTitle":"Contenuto della sessione",
"sfaTitle":"Seconds Factors authentication",
"sfaTitle":"Seconds Factors Authentication",
"show":"Mostra",
"showHelp":"Mostra aiuto",
"singleIP":"Solo un IP per utente",
......
......@@ -672,7 +672,7 @@
"sessionStartedAt":"Phiên bắt đầu lúc",
"sessionStorage":"Sessions lưu trữ",
"sessionTitle":"Nội dung phiên",
"sfaTitle":"Seconds Factors authentication",
"sfaTitle":"Seconds Factors Authentication",
"show":"Hiển thị",
"showHelp":"Hiển thị trợ giúp",
"singleIP":"Chỉ một địa chỉ IP bởi người dùng",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment