Commit 156e8be7 authored by Clément OUDOT's avatar Clément OUDOT
Browse files

Let passwordDB editable with Multi configuration (#919)

parent cd56a89b
......@@ -26,11 +26,9 @@ var filterFunctions = {
nToShow.push(tmp + 'Params');
}
if (node.nodes[0].data.match(/^(Choice|Multi)/)) {
for (var i = 1; i < 3; i++) {
node.nodes[i].data = node.nodes[0].data;
}
if (node.nodes[0].data.match(/^Multi/)) {
node.nodes[2].data = 'Null';
node.nodes[1].data = node.nodes[0].data;
if (node.nodes[0].data.match(/^Choice/)) {
node.nodes[2].data = 'Choice';
}
//all = true;
}
......@@ -86,4 +84,4 @@ var filterFunctions = {
});
});
}
}
\ No newline at end of file
}
var filterFunctions={authParams:function(b,a,c){var d=[];c.nodes.forEach(function(e){d.push(b.getKey(e))});a.all(d).then(function(){var g=false;var e=[];var h=function(j){var i=j.toLowerCase();if(i=="ad"){i="ldap"}if(i=="openidconnect"){i="oidc"}e.push(i+"Params")};if(c.nodes[0].data.match(/^(Choice|Multi)/)){for(var f=1;f<3;f++){c.nodes[f].data=c.nodes[0].data}if(c.nodes[0].data.match(/^Multi/)){c.nodes[2].data="Null"}}c.nodes.forEach(function(i){h(i.data)});c.nodes_cond.forEach(function(m){if(c.nodes[0].data=="Choice"&&m.id=="choiceParams"){var l=m._nodes?m._nodes:m.nodes;if(!l[1].cnodes){l=l[1]._nodes?l[1]._nodes:l[1].nodes;l.forEach(function(n){n.data.forEach(function(o){h(o)})})}else{b.waiting=true;b.download({"$modelValue":l[1]}).then(function(){filterFunctions.authParams(b,a,c)});return}}else{if(c.nodes[0].data=="Multi"&&m.id=="multiParams"){var l=m._nodes?m._nodes:m.nodes;if(!("data" in l[0])){a.all([b.getKey(l[0]),b.getKey(l[1])]).then(function(){filterFunctions.authParams(b,a,c)});return}var i=";";var k=new RegExp(i+"\\s*(\\w+)","g");var j=""+(l[0].data?i+l[0].data:"")+(l[1].data?i+l[1].data:"");while((result=k.exec(j))!==null){h(result[1])}}}});c.nodes_cond.forEach(function(i){if(!g&&e.indexOf(i.id)==-1){i.show=false}else{i.show=true}})})}};
\ No newline at end of file
var filterFunctions={authParams:function(b,a,c){var d=[];c.nodes.forEach(function(e){d.push(b.getKey(e))});a.all(d).then(function(){var f=false;var e=[];var g=function(i){var h=i.toLowerCase();if(h=="ad"){h="ldap"}if(h=="openidconnect"){h="oidc"}e.push(h+"Params")};if(c.nodes[0].data.match(/^(Choice|Multi)/)){c.nodes[1].data=c.nodes[0].data;if(c.nodes[0].data.match(/^Choice/)){c.nodes[2].data="Choice"}}c.nodes.forEach(function(h){g(h.data)});c.nodes_cond.forEach(function(l){if(c.nodes[0].data=="Choice"&&l.id=="choiceParams"){var k=l._nodes?l._nodes:l.nodes;if(!k[1].cnodes){k=k[1]._nodes?k[1]._nodes:k[1].nodes;k.forEach(function(n){n.data.forEach(function(m){g(m)})})}else{b.waiting=true;b.download({"$modelValue":k[1]}).then(function(){filterFunctions.authParams(b,a,c)});return}}else{if(c.nodes[0].data=="Multi"&&l.id=="multiParams"){var k=l._nodes?l._nodes:l.nodes;if(!("data" in k[0])){a.all([b.getKey(k[0]),b.getKey(k[1])]).then(function(){filterFunctions.authParams(b,a,c)});return}var h=";";var j=new RegExp(h+"\\s*(\\w+)","g");var i=""+(k[0].data?h+k[0].data:"")+(k[1].data?h+k[1].data:"");while((result=j.exec(i))!==null){g(result[1])}}}});c.nodes_cond.forEach(function(h){if(!f&&e.indexOf(h.id)==-1){h.show=false}else{h.show=true}})})}};
\ No newline at end of file
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