Change credential boolean prefix

This commit is contained in:
Nick O'Leary
2014-07-20 20:42:41 +01:00
parent d67a54a66a
commit 4302deb5a6
3 changed files with 4 additions and 4 deletions

View File

@@ -348,7 +348,7 @@ RED.editor = function() {
if (credDef[cred].type == 'password') {
if (credData[cred]) {
$('#' + prefix + '-' + cred).val(credData[cred]);
} else if (credData['has' + cred]) {
} else if (credData['has_' + cred]) {
$('#' + prefix + '-' + cred).val('__PWRD__');
}
else {
@@ -385,7 +385,7 @@ RED.editor = function() {
var input = $("#" + prefix + '-' + cred);
var value = input.val();
if (credDefinition[cred].type == 'password') {
node.credentials['has' + cred] = (value != "");
node.credentials['has_' + cred] = (value != "");
if (value == '__PWRD__') {
continue;
}