Propage bug fix #1414 to 2ndFA
This commit is contained in:
parent
7a3302cfed
commit
0760cbf140
|
@ -197,8 +197,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
|
|||
subres = []
|
||||
for attr in attrs
|
||||
if session[attr]
|
||||
session[attr] = session[attr].toString()
|
||||
if session[attr].match(/"type":\s*"(?:TOTP|U2F|UBK)"/)
|
||||
if session[attr].toString().match(/"type":\s*"(?:TOTP|U2F|UBK)"/)
|
||||
subres.push
|
||||
title: "type"
|
||||
value: "name"
|
||||
|
@ -217,7 +216,7 @@ llapp.controller 'SessionsExplorerCtrl', ['$scope', '$translator', '$location',
|
|||
value: name
|
||||
epoch: epoch
|
||||
delete session[attr]
|
||||
else if session[attr].match(/\w+/)
|
||||
else if session[attr].toString().match(/\w+/)
|
||||
subres.push
|
||||
title: attr
|
||||
value: session[attr]
|
||||
|
|
|
@ -199,8 +199,7 @@
|
|||
for (i = 0, len = attrs.length; i < len; i++) {
|
||||
attr = attrs[i];
|
||||
if (session[attr]) {
|
||||
session[attr] = session[attr].toString();
|
||||
if (session[attr].match(/"type":\s*"(?:TOTP|U2F|UBK)"/)) {
|
||||
if (session[attr].toString().match(/"type":\s*"(?:TOTP|U2F|UBK)"/)) {
|
||||
subres.push({
|
||||
title: "type",
|
||||
value: "name",
|
||||
|
@ -228,7 +227,7 @@
|
|||
});
|
||||
}
|
||||
delete session[attr];
|
||||
} else if (session[attr].match(/\w+/)) {
|
||||
} else if (session[attr].toString().match(/\w+/)) {
|
||||
subres.push({
|
||||
title: attr,
|
||||
value: session[attr]
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user